Class VirtualKeyboardXmlSerializer
Serializes the RadVirtualKeyboard component to XML, using the same rules that apply in Code Dom serialization, in VS designer.
Inherited Members
Namespace: Telerik.WinControls.VirtualKeyboard
Assembly: Telerik.WinControls.UI.dll
Syntax
public class VirtualKeyboardXmlSerializer : ComponentXmlSerializer
Constructors
VirtualKeyboardXmlSerializer(RadVirtualKeyboard, ComponentXmlSerializationInfo)
Constructs new instance of the class, providing extended properties serialization information
Declaration
public VirtualKeyboardXmlSerializer(RadVirtualKeyboard virtualKeyboard, ComponentXmlSerializationInfo componentSerializationInfo)
Parameters
RadVirtualKeyboard
virtualKeyboard
The serialization component. |
ComponentXmlSerializationInfo
componentSerializationInfo
Extends the properties serialization information. |
Methods
ChangeSerializedElementType(Type)
Used to change the element type of VirtualKeyboardLayoutPanel descendants during the Save layout operation.
Declaration
protected virtual Type ChangeSerializedElementType(Type elementType)
Parameters
System.Type
elementType
The type of the element. |
Returns
System.Type
THe adjusted element type. |
GetElementNameByType(Type)
Gets the element name as string by given element type.
Declaration
protected override string GetElementNameByType(Type elementType)
Parameters
System.Type
elementType
The type of the element. |
Returns
System.String
The element name as string. |
Overrides
ProcessListOverride(XmlReader, Object, PropertyDescriptor, IList)
Override to provide custom processing of collection being deserialized
Declaration
protected override bool ProcessListOverride(XmlReader reader, object listOwner, PropertyDescriptor ownerProperty, IList list)
Parameters
System.Xml.XmlReader
reader
The XML reader. |
System.Object
listOwner
The list owner. |
System.ComponentModel.PropertyDescriptor
ownerProperty
The property descriptor. |
System.Collections.IList
list
The collection. |
Returns
System.Boolean
True if the list does not require further processing by the deserializer, False to use the default deserialization |
Overrides
ProcessReaderAttribute(XmlReader, Object, Object, PropertyDescriptor)
Reads properties of an object and sub-object the reader is currently positioned on. Processes an attribute from the XML file while reading with System.Xml.XmlReader.
Declaration
protected override bool ProcessReaderAttribute(XmlReader reader, object parentObject, object toRead, PropertyDescriptor property)
Parameters
System.Xml.XmlReader
reader
XML reader instance, positioned on the element to read. |
System.Object
parentObject
The parent object instance, null if there is no parent object information |
System.Object
toRead
The object instance to be processed |
System.ComponentModel.PropertyDescriptor
property
The property that is being processed. Extracted from reader.Name |
Returns
System.Boolean
A value indicating whether the attribute has been processed. If [true] the parent class will not process current property/attribute. |
Overrides
ShouldSerializeValue(Object, PropertyDescriptor, PropertySerializationMetadata)
Provides logic to determine whether property value should be serialized.
Declaration
protected override bool ShouldSerializeValue(object component, PropertyDescriptor property, PropertySerializationMetadata overwriteMetadata)
Parameters
System.Object
component
|
System.ComponentModel.PropertyDescriptor
property
property to serialize |
PropertySerializationMetadata
overwriteMetadata
collection of extra serialization attributes for the property, corresponding to ComponentSerializationInfo |
Returns
System.Boolean
value indicating whether property value should be serialized |
Overrides
Remarks
ShouldSerialize value resolution is as follows: