XmlObjectBase Class
Provides the base class for a serializable representation of an object.
public abstract class XmlObjectBase
- Inheritance:
- object object
- Derived:
- XmlAutoHideContainers XmlAutoHideTabStrip XmlDockSiteLayout XmlDockingObject XmlStandardMdiHost XmlTabbedMdiHost
Constructors
XmlObjectBase()
Initializes an instance of the class.
protected XmlObjectBase()
Properties
Tag
An arbitrary object value that can be used to store custom information about this object.
Methods
GetSerializerProperties()
Returns an enumerable of IXmlSerializerProperty instances which define the properties supported by serialization.
public virtual IEnumerable<IXmlSerializerProperty> GetSerializerProperties()
Returns
Remarks
When not using System.Xml.Serialization.XmlSerializer, derived classes should override this method to define additional properties that should be included by the serializer.
PointToString(Point?)
Converts a nullable Avalonia.Point to a string that can be safely serialized to XML.
protected static string? PointToString(Point? point)
| Parameter | Type | Description |
|---|---|---|
| point | Point? | The nullable Avalonia.Point to convert. |
Returns
RectToString(Rect?)
Converts a nullable Avalonia.Rect to a string that can be safely serialized to XML.
protected static string? RectToString(Rect? rect)
| Parameter | Type | Description |
|---|---|---|
| rect | Rect? | The nullable Avalonia.Rect to convert. |
Returns
SizeToString(Size?)
Converts a nullable Avalonia.Size to a string that can be safely serialized to XML.
protected static string? SizeToString(Size? size)
| Parameter | Type | Description |
|---|---|---|
| size | Size? | The nullable Avalonia.Size to convert. |
Returns
StringToPoint(string?)
Converts a string value from serialized XML to a nullable Avalonia.Point.
protected static Point? StringToPoint(string? text)
| Parameter | Type | Description |
|---|---|---|
| text | string | The string to examine. |
Returns
- Point?
StringToRect(string?)
Converts a string value from serialized XML to a nullable Avalonia.Rect.
protected static Rect? StringToRect(string? text)
| Parameter | Type | Description |
|---|---|---|
| text | string | The string to examine. |
Returns
- Rect?
StringToSize(string?)
Converts a string value from serialized XML to a nullable Avalonia.Size.
protected static Size? StringToSize(string? text)
| Parameter | Type | Description |
|---|---|---|
| text | string | The string to examine. |
Returns
- Size?
StringToType(string?)
Converts a string value from serialized XML to a Type.
protected static Type? StringToType(string? text)
| Parameter | Type | Description |
|---|---|---|
| text | string | The string to examine. |
Returns
TypeToString(Type?)
Converts a Type to a string that can be safely serialized to XML.
protected static string? TypeToString(Type? type)
| Parameter | Type | Description |
|---|---|---|
| type | Type | The Type to convert. |
Returns
Inherited Members
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()