In This Article

XmlObjectBase Class

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

public abstract class XmlObjectBase
Inheritance:
System.Object Object
Derived:
XmlAutoHideHost XmlAutoHideTabStrip XmlDockingObject XmlDockSiteLayout XmlStandardMdiHost XmlTabbedMdiHost XmlNavigationBarLayout XmlNavigationPane

Constructors

XmlObjectBase()

protected XmlObjectBase()

Properties

Tag

Gets or sets an arbitrary object value that can be used to store custom information about this object.

public object Tag { get; set; }

Property Value

System.Object:

The intended value. This property has no default value.

Methods

PointToString(Nullable<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 System.Nullable<System.Windows.Point>

The nullable System.Windows.Point to convert.

Returns

System.String:

The string that was generated.

RectToString(Nullable<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 System.Nullable<System.Windows.Rect>

The nullable System.Windows.Rect to convert.

Returns

System.String:

The string that was generated.

SizeToString(Nullable<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 System.Nullable<System.Windows.Size>

The nullable System.Windows.Size to convert.

Returns

System.String:

The string that was generated.

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 System.String

The string to examine.

Returns

System.Nullable<System.Windows.Point>:

The nullable System.Windows.Point that was generated.

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 System.String

The string to examine.

Returns

System.Nullable<System.Windows.Rect>:

The nullable System.Windows.Rect that was generated.

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 System.String

The string to examine.

Returns

System.Nullable<System.Windows.Size>:

The nullable System.Windows.Size that was generated.

StringToType(String)

Converts a string value from serialized XML to a System.Windows.Size.

protected static Type StringToType(string text)
Parameter Type Description
text System.String

The string to examine.

Returns

System.Type:

The System.Type that was generated.

TypeToString(Type)

Converts a System.Type to a string that can be safely serialized to XML.

protected static string TypeToString(Type type)
Parameter Type Description
type System.Type

The System.Type to convert.

Returns

System.String:

The string that was generated.

Inherited Members

  • System.Object.ToString()
  • System.Object.Equals(System.Object)
  • System.Object.Equals(System.Object, System.Object)
  • System.Object.ReferenceEquals(System.Object, System.Object)
  • System.Object.GetHashCode()
  • System.Object.GetType()
  • System.Object.MemberwiseClone()