Class SerializationExtensions
Utilities related to the (de)serialization.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI.Diagrams
Assembly: Telerik.WinControls.RadDiagram.dll
Syntax
public static class SerializationExtensions
Methods
DeserializePrimitives(RadItem, SerializationInfo)
Deserializes some primitive properties of a control.
Declaration
public static void DeserializePrimitives(this RadItem control, SerializationInfo info)
Parameters
RadItem
control
The control. |
SerializationInfo
info
The serialization info. |
GetBoolean(String)
Returns a boolean value of the given string.
Declaration
public static bool GetBoolean(string serializationValue)
Parameters
System.String
serializationValue
The serialized boolean. |
Returns
System.Boolean
|
GetBrush(Object, String)
Returns a brush from the SerializationInfo data.
Declaration
public static Brush GetBrush(object data, string nodeName)
Parameters
System.Object
data
The data representing a brush; which can be a simple color or a gradient.. |
System.String
nodeName
Name of the node. |
Returns
System.Drawing.Brush
|
GetBrushInfo(Brush, String)
Converts the brush to a serialized form which can be added to the buckets of the SerializationInfo.
Declaration
public static object GetBrushInfo(this Brush brush, string nodeName)
Parameters
System.Drawing.Brush
brush
The brush. |
System.String
nodeName
Name of the node. |
Returns
System.Object
|
See Also
GetThickness(String)
Returns a Thickness on the basis of the given string.
Declaration
public static Thickness GetThickness(string serializationValue)
Parameters
System.String
serializationValue
The serialized thickness. |
Returns
Thickness
|
See Also
GetThicknessInfo(Thickness)
Returns a serialized form of the given thickness.
Declaration
public static string GetThicknessInfo(this Thickness thickness)
Parameters
Thickness
thickness
The thickness. |
Returns
System.String
|
See Also
SerializePrimitives(RadDiagramConnector, SerializationInfo)
Serializes some primitive properties of a control.
Declaration
public static void SerializePrimitives(this RadDiagramConnector connector, SerializationInfo info)
Parameters
RadDiagramConnector
connector
The control. |
SerializationInfo
info
The serialization info. |