Constant class for common serialization properties.
Type Details
- yfiles module
- view-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.graphml.SerializationProperties
See Also
Constants
Property key to control caching for external references.
Remarks
This property has a boolean value.
If this property is set to false
in the write context, the writer will not cache remember external reference ids provided via QueryReferenceId, i.e. the event will be raised whenever an instance of the external object is encountered during the write process. This allows to provide different values for the same object, depending on the current context. Default for this property is true
.
The current KeyScope in which an IOutputHandler, IInputHandler, or custom serialization code is called.
Remarks
Property key to control graph element geometry serialization and deserialization
Remarks
This property has a value of type GraphItemTypes.
Setting this property as a serialization property disables geometry serialization for all of the provided GraphItemTypes. Setting this property as a deserialization property disables geometry deserialization only for nodes, edges and/or ports. By default, this property is set to NONE.
Property key to omit serialization and deserialization of the IGraph's default settings.
Remarks
This property has a boolean value.
If this property is set to true
in serializationPropertyOverrides or the write context, the current graph defaults are not written.
If this property is set to true
in deserializationPropertyOverrides or the parse context, any graph defaults present in the input are not parsed and applied to the current graph.
Default for this property is true
for writing and false
for parsing.
Property key to control graph elements serialization and deserialization
Remarks
This property has a value of type GraphItemTypes.
Setting this property disables serialization and deserialization for the provided GraphItemTypes. By default, this property is set to NONE.
Property key to control label serialization of IStripes.
Remarks
This property has a value of type StripeTypes.
Setting this property disables label serialization for the provided StripeTypes. By default, this property is set to NONE.
Property key to control style serialization and deserialization of IStripes.
Remarks
This property has a value of type StripeTypes.
Setting this property disables style serialization for the provided StripeTypes. By default, this property is set to NONE.
Property key to control user tag serialization and deserialization of IStripes.
Remarks
This property has a value of type StripeTypes.
Setting this property disables tag serialization for the provided StripeTypes. By default, this property is set to NONE.
Property key to control graph element style serialization and deserialization
Remarks
This property has a value of type GraphItemTypes.
Setting this property as a serialization property disables style serialization for all of the provided GraphItemTypes. Setting this property as a deserialization property disables style deserialization only for nodes, edges and/or ports. By default, this property is set to NONE
Property key to control user tag serialization and deserialization
Remarks
This property has a value of type GraphItemTypes.
Setting this property as a serialization property disables tag serialization for all of the provided GraphItemTypes. Setting this property as a deserialization property disables tag deserialization only for nodes, edges and/or ports. By default, this property is set to NONE
Property key for alllowing to parse member names (properties and enum values) case-insensitively during XAML deserialization.
Remarks
This will convert property and member names to lower-case and remove underscores to be able to compare things like SOME_CONSTANT_NAME
and SomeConstantName
as well as somePropertyName
and SomePropertyName
, respectively.
This property has a boolean value.
Default for this property is false
.
Property key to specify whether the preferred size of labels should be parsed.
Remarks
This property has a boolean value.
If this property is set to true
, the preferred size provided by GraphML is used, otherwise, the preferred size is determined automatically. This property is mainly meant for interoperability use cases where the text size calculations can be quite different for different platforms. Default value is true
The edge that is currently being represented by the dummy edge that is written instead.
Remarks
This property has a value of type IEdge.
If this value is set, then the edge currently being serialized represents the given edge in reality.
Property key to specify whether to rewrite relative URIs relative to the current document location.
Remarks
This property has a boolean value.
If set, relative URIs for images and other resources are rewritten relative to BASE_URI. If this property is false
, or if BASE_URI is not set (either explicitly or implicitly) or the resource URI is not relative, the resource URI will not be rewritten.
Default value is true
.
Property key to control how undefined values are serialized.
Remarks
This property has a value of type UndefinedHandling.
The default for this property is EXPLICIT.
Property key to provide a predicate that determines if the preferred size of a label should be written.
Remarks
If this property is not set, the label size is always written.
This property requires a value that is a predicate function taking an ILabel instance and returning a boolean value whether the preferred size of that label shoul be written or not.
Default value is null
.
Property key to specify whether the stripe defaults of a table should be written.
Remarks
This property has a boolean value.
If set to true
the columnDefaults and rowDefaults will be written. Default value is true
.