New to Telerik UI for WPFStart a free 30-day trial

Utilities related to the (de)serialization.

Definition

Namespace:Telerik.Windows.Controls.Diagrams

Assembly:Telerik.Windows.Controls.Diagrams.dll

Syntax:

C#
public static class SerializationExtensions

Inheritance: objectSerializationExtensions

Methods

Deserializes some primitive properties of a control.

C#
public static void DeserializePrimitives(this Control control, SerializationInfo info)
Parameters:controlControl

The control.

infoSerializationInfo

The serialization info.

Returns a boolean value of the given string.

C#
public static bool GetBoolean(string serializationValue)
Parameters:serializationValuestring

The serialized boolean.

Returns:

bool

Returns a brush from the SerializationInfo data.

C#
public static Brush GetBrush(object data, string nodeName)
Parameters:dataobject

The data representing a brush; which can be a simple color or a gradient..

nodeNamestring

Name of the node.

Returns:

Brush

Converts the brush to a serialized form which can be added to the buckets of the SerializationInfo.

C#
public static object GetBrushInfo(this Brush brush, string nodeName)
Parameters:brushBrush

The brush.

nodeNamestring

Name of the node.

Returns:

object

Returns a Thickness on the basis of the given string.

C#
public static Thickness GetThickness(string serializationValue)
Parameters:serializationValuestring

The serialized thickness.

Returns:

Thickness

Returns a serialized form of the given thickness.

C#
public static string GetThicknessInfo(this Thickness thickness)
Parameters:thicknessThickness

The thickness.

Returns:

string

Serializes some primitive properties of a control.

C#
public static void SerializePrimitives(this Control control, SerializationInfo info)
Parameters:controlControl

The control.

infoSerializationInfo

The serialization info.