Search
JsonPersistContext Members
Constructors Fields Properties Methods
 


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

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

 Public Constructors

  Name Description

JsonPersistContext

Overloaded.  

 Public Fields

  Name Description

ImageHandler

An object that converts custom image sources to or from JSON.

LatestFormat

Specifies the latest file format revision number.

 Protected Fields

  Name Description

brushes

A list of all brushes. (Inherited from JsonContext.)

inplaceImages

Specifies whether images are encoded in place.

inplaceResources

Specifies whether resource accumulation is disabled. (Inherited from JsonContext.)

 Public Properties

  Name Description

Diagram

Gets the underlying diagram object.

FileVersion

Gets the format revision number for the file being currently serialized.

 Public Methods

  Name Description

LoadItem

Reads a diagram item from the specified JsonObject.

Parse

Deserializes the specified JSON formatted string to a JsonObject. (Inherited from JsonContext.)

ReadAnchorPattern

Reads an AnchorPattern object.

ReadAnchorPoint

Reads an AnchorPoint object.

ReadBrush

Overloaded.   (Inherited from JsonContext.)

ReadBrushColor

Reads a Brush object with the specified color. (Inherited from JsonContext.)

ReadBrushes

Reads all brushes. (Inherited from JsonContext.)

ReadColor

Overloaded.   (Inherited from JsonContext.)

ReadColorBlend

Reads a GradientStopCollection object. (Inherited from JsonContext.)

ReadDashStyle

Reads a DashStyle object. (Inherited from JsonContext.)

ReadEffect

Reads a NodeEffect object.

ReadEnum

Reads an enum value. (Inherited from JsonContext.)

ReadFloatArray

Reads a double array. (Inherited from JsonContext.)

ReadFont

Overloaded.  

ReadFontStyle

Reads a FontStyle object. (Inherited from JsonContext.)

ReadImage

Reads an Image object.

ReadImages

Reads all images.

ReadItemId

Reads an item reference.

ReadObject

Reads an object. (Inherited from JsonContext.)

ReadPen

Overloaded.   (Inherited from JsonContext.)

ReadPoint

Reads a Point object. (Inherited from JsonContext.)

ReadPoint3D

Reads a Point3D object. (Inherited from JsonContext.)

ReadPointString

Reads a Point string. (Inherited from JsonContext.)

ReadRect

Reads a Rect object. (Inherited from JsonContext.)

ReadShape

Reads a Shape object.

ReadSize

Reads a Size object. (Inherited from JsonContext.)

ReadStringFormat

Reads a StringFormat object.

ReadStyle

Reads a Style object.

ReadSvg

Reads a SVG objec.

ReadTag

Reads the specified tag for the specified object.

ReadTextAlignment

Reads a TextAlignment object. (Inherited from JsonContext.)

ReadTheme

Reads a Theme object.

ReadThickness

Reads a Thickness object.

SaveItem

Saves the specified diagram item to a JsonObject.

Serialize

Serializes the specified JsonObject to a JSON formatted string. (Inherited from JsonContext.)

WriteAnchorPattern

Writes an AnchorPattern object.

WriteAnchorPoint

Writes an AnchorPoint object.

WriteBrush

Writes a Brush object. (Inherited from JsonContext.)

WriteBrushColor

Writes the color of the specified brush. (Inherited from JsonContext.)

WriteBrushes

Writes all currently accumulated brushes. (Inherited from JsonContext.)

WriteColor

Writes a Color object. (Inherited from JsonContext.)

WriteColorBlend

Writes a GradientStopCollection object. (Inherited from JsonContext.)

WriteDashStyle

Writes a DashStyle object. (Inherited from JsonContext.)

WriteEffect

Writes a NodeEffect object.

WriteEnum

Writes an enum value. (Inherited from JsonContext.)

WriteFont

Writes a Font object.

WriteFontStyle

Writes a FontStyle object. (Inherited from JsonContext.)

WriteImage

Writes an Image object.

WriteImages

Writes all currently accumulated images.

WriteItemId

Writes a reference to the specified item.

WriteItemType

Writes an item type.

WriteObject

Writes an object. (Inherited from JsonContext.)

WritePen

Writes a Pen object. (Inherited from JsonContext.)

WritePoint

Writes a Point object. (Inherited from JsonContext.)

WritePoint3D

Writes a Point3D object. (Inherited from JsonContext.)

WritePointString

Writes a Point string. (Inherited from JsonContext.)

WriteRect

Writes a Rect object. (Inherited from JsonContext.)

WriteShape

Writes a Shape object.

WriteSize

Writes a Size object. (Inherited from JsonContext.)

WriteStringFormat

Writes a StringFormat object.

WriteStyle

Writes a Style object.

WriteSvg

Writes an SvgContent object.

WriteTag

Writes the specified tag of the specified object.

WriteTextAlignment

Writes a TextAlignment object. (Inherited from JsonContext.)

WriteTheme

Writes a Theme object.

WriteThickness

Writes a Thickness object.

 Protected Methods

  Name Description

Base64Decode

Decodes a string from Base64 representation. (Inherited from JsonContext.)

Base64Encode

Encodes a string to Base64 representation. (Inherited from JsonContext.)

ToCamelCase

Converts a string to Pascal case. (Inherited from JsonContext.)

ToPascalCase

Converts a string to Camel case. (Inherited from JsonContext.)

 See Also