Search
JsonContext Members
Constructors Fields Methods
 


Contains methods that can help you serialize and deserialize to and from JSON.

The following tables list the members exposed by the JsonContext type.

 Public Constructors

  Name Description

JsonContext

Initializes a new instance of the JsonContext class.

 Protected Fields

  Name Description

brushes

A list of all brushes.

inplaceResources

Specifies whether resource accumulation is disabled.

 Public Methods

  Name Description

Parse

Deserializes the specified JSON formatted string to a JsonObject.

ReadBrush

Overloaded.  

ReadBrushColor

Reads a Brush object with the specified color.

ReadBrushes

Reads all brushes.

ReadColor

Overloaded.  

ReadColorBlend

Reads a GradientStopCollection object.

ReadDashStyle

Reads a DashStyle object.

ReadEnum

Reads an enum value.

ReadFloatArray

Reads a double array.

ReadFontStyle

Reads a FontStyle object.

ReadObject

Reads an object.

ReadPen

Overloaded.  

ReadPoint

Reads a Point object.

ReadPoint3D

Reads a Point3D object.

ReadPointString

Reads a Point string.

ReadRect

Reads a Rect object.

ReadSize

Reads a Size object.

ReadTextAlignment

Reads a TextAlignment object.

Serialize

Serializes the specified JsonObject to a JSON formatted string.

WriteBrush

Writes a Brush object.

WriteBrushColor

Writes the color of the specified brush.

WriteBrushes

Writes all currently accumulated brushes.

WriteColor

Writes a Color object.

WriteColorBlend

Writes a GradientStopCollection object.

WriteDashStyle

Writes a DashStyle object.

WriteEnum

Writes an enum value.

WriteFontStyle

Writes a FontStyle object.

WriteObject

Writes an object.

WritePen

Writes a Pen object.

WritePoint

Writes a Point object.

WritePoint3D

Writes a Point3D object.

WritePointString

Writes a Point string.

WriteRect

Writes a Rect object.

WriteSize

Writes a Size object.

WriteTextAlignment

Writes a TextAlignment object.

 Protected Methods

  Name Description

Base64Decode

Decodes a string from Base64 representation.

Base64Encode

Encodes a string to Base64 representation.

ToCamelCase

Converts a string to Pascal case.

ToPascalCase

Converts a string to Camel case.

 See Also