In This Article

XmlObjectBase Class

Provides the base class for a serializable representation of an object.

public abstract class XmlObjectBase
Inheritance:
object object
Derived:
XmlAutoHideHost XmlAutoHideTabStrip XmlDockSiteLayout XmlDockingObject XmlStandardMdiHost XmlTabbedMdiHost XmlNavigationBarLayout XmlNavigationPane

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 System.Windows.Point to a string that can be safely serialized to XML.

protected static string? PointToString(Point?? point)
Parameter Type Description
point Point?

The nullable System.Windows.Point to convert.

Returns

string

RectToString(Rect??)

Converts a nullable System.Windows.Rect to a string that can be safely serialized to XML.

protected static string? RectToString(Rect?? rect)
Parameter Type Description
rect Rect?

The nullable System.Windows.Rect to convert.

Returns

string

SizeToString(Size??)

Converts a nullable System.Windows.Size to a string that can be safely serialized to XML.

protected static string? SizeToString(Size?? size)
Parameter Type Description
size Size?

The nullable System.Windows.Size to convert.

Returns

string

StringToPoint(string?)

Converts a string value from serialized XML to a nullable System.Windows.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 System.Windows.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 System.Windows.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

Type

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

Inherited Members

Extension Methods