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

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

C#
public class GridViewLayoutSerializer : ComponentXmlSerializer

Inheritance: objectComponentXmlSerializerGridViewLayoutSerializer

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.MatchExistingItem(XmlReader, IList, object, PropertyDescriptor, string, string, IList, ref int)ComponentXmlSerializer.ReadObjectElement(XmlReader, object)ComponentXmlSerializer.ReadObjectElement(XmlReader, object, object)ComponentXmlSerializer.DisposeObject(IDisposable)ComponentXmlSerializer.ProcessTypeOverride(Type, XmlReader, PropertyDescriptor, object)ComponentXmlSerializer.SetPropertyValue(PropertyDescriptor, object, object)ComponentXmlSerializer.WriteTypeAttribute(XmlWriter, Type, object, DesignerSerializationVisibility)ComponentXmlSerializer.WriteObjectElement(XmlWriter, object)ComponentXmlSerializer.WritePropertyOverride(XmlWriter, PropertyDescriptor, object, DesignerSerializationVisibility)ComponentXmlSerializer.ShouldSerializeValue(object, PropertyDescriptor, PropertySerializationMetadata)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.GetElementNameByType(Type)ComponentXmlSerializer.RootSerializationObjectComponentXmlSerializer.PropertiesProviderComponentXmlSerializer.ResolveTypesOnlyInTelerikAssembliesComponentXmlSerializer.InstanceFactory...

Constructors

Initializes a new instance of the GridViewLayoutSerializer class.

C#
public GridViewLayoutSerializer(ComponentXmlSerializationInfo componentSerializationInfo)
Parameters:componentSerializationInfoComponentXmlSerializationInfo

The component serialization info.

Methods

C#
protected override object GetPropertyValue(PropertyDescriptor property, object propertyOwner)
Parameters:propertyPropertyDescriptorpropertyOwnerobjectReturns:

object

Overrides: ComponentXmlSerializer.GetPropertyValue(PropertyDescriptor, object)

Matches the instance of the element by an attribute value and then deserializes its properties. If the instance is not found in existingInstancesToMatch, new instance of type instanceType will be created and added to existingInstancesToMatch list.

C#
protected override object MatchObjectElement(XmlReader reader, object parent, PropertyDescriptor parentProperty, IList toRead, string propertyToMatch, IList existingInstancesToMatch, out int foundAtIndex)
Parameters:readerXmlReaderparentobjectparentPropertyPropertyDescriptortoReadIListpropertyToMatchstringexistingInstancesToMatchIList

the list with existing instances

foundAtIndexint

index of the element if found in existingInstanceToMatch

Returns:

object

Overrides: ComponentXmlSerializer.MatchObjectElement(XmlReader, object, PropertyDescriptor, IList, string, IList, out int)

Override to provide custom processing of collection being deserialized

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

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)

Processes the property.

C#
protected override bool ProcessProperty(PropertyDescriptor property)
Parameters:propertyPropertyDescriptor

The property.

Returns:

bool

Overrides: ComponentXmlSerializer.ProcessProperty(PropertyDescriptor)

Reads a property of an object and subobject the reader is currently positioned on.

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)

Deserializes a specified property of an object

C#
protected override void ReadElementInObject(XmlReader reader, PropertyDescriptor property, object toRead)
Parameters:readerXmlReader

Xml reader, positioned on the element corresponding to the property to deserialize

propertyPropertyDescriptor

Property descriptor of the property to deserialize

toReadobject

Object that owns the property to deserialize

Overrides: ComponentXmlSerializer.ReadElementInObject(XmlReader, PropertyDescriptor, object)

Override to provide alternative deserialization of objects.

C#
protected override bool ReadObjectElementOverride(XmlReader reader, object toRead)
Parameters:readerXmlReadertoReadobjectReturns:

bool

value indicating whether the object should be processed any further by serializer

Overrides: ComponentXmlSerializer.ReadObjectElementOverride(XmlReader, object)