Class
VirtualKeyboardXmlSerializer

Serializes the RadVirtualKeyboard component to XML, using the same rules that apply in Code Dom serialization, in VS designer.

Definition

Namespace:Telerik.WinControls.VirtualKeyboard

Assembly:Telerik.WinControls.UI.dll

Syntax:

cs-api-definition
public class VirtualKeyboardXmlSerializer : ComponentXmlSerializer

Inheritance: objectComponentXmlSerializerVirtualKeyboardXmlSerializer

Inherited Members ComponentXmlSerializer.ReadDictionaryElement(XmlReader, object, IDictionary)ComponentXmlSerializer.ReadCollectionElement(XmlReader, IList)ComponentXmlSerializer.ReadCollectionElement(XmlReader, object, IList)ComponentXmlSerializer.ReadCollectionElement(XmlReader, object, IList, bool)ComponentXmlSerializer.ReadMergeCollection(XmlReader, object, PropertyDescriptor, IList, string)ComponentXmlSerializer.ReadMergeCollection(XmlReader, object, PropertyDescriptor, IList, string, bool)ComponentXmlSerializer.ReadMergeCollection(XmlReader, object, PropertyDescriptor, IList, string, bool, bool)ComponentXmlSerializer.MatchObjectElement(XmlReader, object, PropertyDescriptor, IList, string, IList, out int)ComponentXmlSerializer.MatchExistingItem(XmlReader, IList, object, PropertyDescriptor, string, string, IList, ref int)ComponentXmlSerializer.ReadObjectElement(XmlReader, object)ComponentXmlSerializer.ReadObjectElement(XmlReader, object, object)ComponentXmlSerializer.ProcessProperty(PropertyDescriptor)ComponentXmlSerializer.DisposeObject(IDisposable)ComponentXmlSerializer.ReadObjectElementOverride(XmlReader, object)ComponentXmlSerializer.ReadElementInObject(XmlReader, PropertyDescriptor, object)ComponentXmlSerializer.ProcessTypeOverride(Type, XmlReader, PropertyDescriptor, object)ComponentXmlSerializer.SetPropertyValue(PropertyDescriptor, object, object)ComponentXmlSerializer.GetPropertyValue(PropertyDescriptor, object)ComponentXmlSerializer.WriteTypeAttribute(XmlWriter, Type, object, DesignerSerializationVisibility)ComponentXmlSerializer.WriteObjectElement(XmlWriter, object)ComponentXmlSerializer.WritePropertyOverride(XmlWriter, PropertyDescriptor, object, DesignerSerializationVisibility)ComponentXmlSerializer.WriteDictionaryElement(XmlWriter, IDictionary, object, PropertyDescriptor)ComponentXmlSerializer.InitializeWrite()ComponentXmlSerializer.InitializeRead()ComponentXmlSerializer.GetCollectionElementOverride(IEnumerable, object, PropertyDescriptor)ComponentXmlSerializer.WriteCollectionElement(XmlWriter, IEnumerable, string)ComponentXmlSerializer.WriteCollectionElement(XmlWriter, IEnumerable, object, PropertyDescriptor)ComponentXmlSerializer.RootSerializationObjectComponentXmlSerializer.PropertiesProviderComponentXmlSerializer.ResolveTypesOnlyInTelerikAssembliesComponentXmlSerializer.InstanceFactory

Constructors

VirtualKeyboardXmlSerializer(RadVirtualKeyboard, ComponentXmlSerializationInfo)

Constructs new instance of the class, providing extended properties serialization information

Declaration

cs-api-definition
public VirtualKeyboardXmlSerializer(RadVirtualKeyboard virtualKeyboard, ComponentXmlSerializationInfo componentSerializationInfo)

Parameters

virtualKeyboard

RadVirtualKeyboard

The serialization component.

componentSerializationInfo

ComponentXmlSerializationInfo

Extends the properties serialization information.

Methods

ChangeSerializedElementType(Type)

Used to change the element type of VirtualKeyboardLayoutPanel descendants during the Save layout operation.

Declaration

cs-api-definition
protected virtual Type ChangeSerializedElementType(Type elementType)

Parameters

elementType

Type

The type of the element.

Returns

Type

THe adjusted element type.

GetElementNameByType(Type)

Gets the element name as string by given element type.

Declaration

cs-api-definition
protected override string GetElementNameByType(Type elementType)

Parameters

elementType

Type

The type of the element.

Returns

string

The element name as string.

Overrides ComponentXmlSerializer.GetElementNameByType(Type)

ProcessListOverride(XmlReader, object, PropertyDescriptor, IList)

Override to provide custom processing of collection being deserialized

Declaration

cs-api-definition
protected override bool ProcessListOverride(XmlReader reader, object listOwner, PropertyDescriptor ownerProperty, IList list)

Parameters

reader

XmlReader

The XML reader.

listOwner

object

The list owner.

ownerProperty

PropertyDescriptor

The property descriptor.

list

IList

The collection.

Returns

bool

True if the list does not require further processing by the deserializer, False to use the default deserialization

Overrides ComponentXmlSerializer.ProcessListOverride(XmlReader, object, PropertyDescriptor, IList)

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 XmlReader.

Declaration

cs-api-definition
protected override bool ProcessReaderAttribute(XmlReader reader, object parentObject, object toRead, PropertyDescriptor property)

Parameters

reader

XmlReader

XML reader instance, positioned on the element to read.

parentObject

object

The parent object instance, null if there is no parent object information

toRead

object

The object instance to be processed

property

PropertyDescriptor

The property that is being processed. Extracted from reader.Name

Returns

bool

A value indicating whether the attribute has been processed. If [true] the parent class will not process current property/attribute.

Overrides ComponentXmlSerializer.ProcessReaderAttribute(XmlReader, object, object, PropertyDescriptor)

ShouldSerializeValue(object, PropertyDescriptor, PropertySerializationMetadata)

Provides logic to determine whether property value should be serialized.

Declaration

cs-api-definition
protected override bool ShouldSerializeValue(object component, PropertyDescriptor property, PropertySerializationMetadata overwriteMetadata)

Parameters

component

object

property

PropertyDescriptor

property to serialize

overwriteMetadata

PropertySerializationMetadata

collection of extra serialization attributes for the property, corresponding to ComponentSerializationInfo

Returns

bool

value indicating whether property value should be serialized

Overrides ComponentXmlSerializer.ShouldSerializeValue(object, PropertyDescriptor, PropertySerializationMetadata)

Remarks

ShouldSerialize value resolution is as follows: