In This Article

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.

public object? Tag { get; set; }

Property Value

object

Methods

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

string:

The string that was generated.

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

string:

The string that was generated.

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

string:

The string that was generated.

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?:

The nullable Avalonia.Point that was generated.

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?:

The nullable Avalonia.Rect that was generated.

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?:

The nullable Avalonia.Size that was generated.

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

Type:

The Type that was generated.

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

string:

The string that was generated.

Inherited Members

Extension Methods