Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
410
LabelStyle
posted

Is they a method for serialize a LableStyle similiar to how we serialize a font. See code snipit:

I take the return value and write to xml for saving user set properties. I want to perform the same thing on Annotation.TextStyle that inherits from a LableStyle.

 

 

 

Using

 

 

 

stream As New MemoryStream()

 

 

 

Dim formatter As New BinaryFormatter()

formatter.Serialize(stream, font)

 

 

 

Return Convert.ToBase64String(stream.ToArray())

 

 

 

End Using