Share via


MoveableDecoratorHostShapeSerializer.Write Method

Include Protected Members
Include Inherited Members

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public method Write(SerializationContext, ModelElement, XmlWriter) Serializes the model element instance associated with this serializer instance into XML. (Inherited from DomainClassXmlSerializer.)
Public method Write(SerializationContext, ModelElement, XmlWriter, RootElementSettings) Unlike DecoratorHostShape, MoveableDecoratorHostShape does need to be serialized to preserve the location information. However, due to the special handling of decorators and host shapes in CDS, the normal generated serialization won't work. So we short-circuit the generated serializer here, and handle the serialization in ShapeElementSerializer.CustomWriteElements() instead. (Overrides MoveableDecoratorHostShapeSerializerBase.Write(SerializationContext, ModelElement, XmlWriter, RootElementSettings).)

Top

See Also

Reference

MoveableDecoratorHostShapeSerializer Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace