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
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
- object:
The intended value. This property has no default value.
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:
The string that was generated.
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:
The string that was generated.
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:
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 | string | The string to examine. |
Returns
- 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 | string | The string to examine. |
Returns
- 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 | string | The string to examine. |
Returns
- 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 | 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
- string:
The string that was generated.