New to Telerik UI for WinFormsStart a free 30-day trial

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:

C#
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

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

C#
public VirtualKeyboardXmlSerializer(RadVirtualKeyboard virtualKeyboard, ComponentXmlSerializationInfo componentSerializationInfo)
Parameters:virtualKeyboardRadVirtualKeyboard

The serialization component.

componentSerializationInfoComponentXmlSerializationInfo

Extends the properties serialization information.

Methods

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

C#
protected virtual Type ChangeSerializedElementType(Type elementType)
Parameters:elementTypeType

The type of the element.

Returns:

Type

THe adjusted element type.

Gets the element name as string by given element type.

C#
protected override string GetElementNameByType(Type elementType)
Parameters:elementTypeType

The type of the element.

Returns:

string

The element name as string.

Overrides: ComponentXmlSerializer.GetElementNameByType(Type)

Override to provide custom processing of collection being deserialized

C#
protected override bool ProcessListOverride(XmlReader reader, object listOwner, PropertyDescriptor ownerProperty, IList list)
Parameters:readerXmlReader

The XML reader.

listOwnerobject

The list owner.

ownerPropertyPropertyDescriptor

The property descriptor.

listIList

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)

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.

C#
protected override bool ProcessReaderAttribute(XmlReader reader, object parentObject, object toRead, PropertyDescriptor property)
Parameters:readerXmlReader

XML reader instance, positioned on the element to read.

parentObjectobject

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

toReadobject

The object instance to be processed

propertyPropertyDescriptor

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)

Provides logic to determine whether property value should be serialized.

C#
protected override bool ShouldSerializeValue(object component, PropertyDescriptor property, PropertySerializationMetadata overwriteMetadata)
Parameters:componentobjectpropertyPropertyDescriptor

property to serialize

overwriteMetadataPropertySerializationMetadata

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: