Class
GridViewLayoutSerializer

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

cs-api-definition
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

GridViewLayoutSerializer(ComponentXmlSerializationInfo)

Initializes a new instance of the GridViewLayoutSerializer class.

Declaration

cs-api-definition
public GridViewLayoutSerializer(ComponentXmlSerializationInfo componentSerializationInfo)

Parameters

componentSerializationInfo

ComponentXmlSerializationInfo

The component serialization info.

Methods

GetPropertyValue(PropertyDescriptor, object)

Declaration

cs-api-definition
protected override object GetPropertyValue(PropertyDescriptor property, object propertyOwner)

Parameters

property

PropertyDescriptor

propertyOwner

object

Returns

object

Overrides ComponentXmlSerializer.GetPropertyValue(PropertyDescriptor, object)

MatchObjectElement(XmlReader, object, PropertyDescriptor, IList, string, IList, out int)

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.

Declaration

cs-api-definition
protected override object MatchObjectElement(XmlReader reader, object parent, PropertyDescriptor parentProperty, IList toRead, string propertyToMatch, IList existingInstancesToMatch, out int foundAtIndex)

Parameters

reader

XmlReader

parent

object

parentProperty

PropertyDescriptor

toRead

IList

propertyToMatch

string

existingInstancesToMatch

IList

the list with existing instances

foundAtIndex

int

index of the element if found in existingInstanceToMatch

Returns

object

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

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

listOwner

object

ownerProperty

PropertyDescriptor

list

IList

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)

ProcessProperty(PropertyDescriptor)

Processes the property.

Declaration

cs-api-definition
protected override bool ProcessProperty(PropertyDescriptor property)

Parameters

property

PropertyDescriptor

The property.

Returns

bool

Overrides ComponentXmlSerializer.ProcessProperty(PropertyDescriptor)

ProcessReaderAttribute(XmlReader, object, object, PropertyDescriptor)

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

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)

ReadElementInObject(XmlReader, PropertyDescriptor, object)

Deserializes a specified property of an object

Declaration

cs-api-definition
protected override void ReadElementInObject(XmlReader reader, PropertyDescriptor property, object toRead)

Parameters

reader

XmlReader

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

property

PropertyDescriptor

Property descriptor of the property to deserialize

toRead

object

Object that owns the property to deserialize

Overrides ComponentXmlSerializer.ReadElementInObject(XmlReader, PropertyDescriptor, object)

ReadObjectElementOverride(XmlReader, object)

Override to provide alternative deserialization of objects.

Declaration

cs-api-definition
protected override bool ReadObjectElementOverride(XmlReader reader, object toRead)

Parameters

reader

XmlReader

toRead

object

Returns

bool

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

Overrides ComponentXmlSerializer.ReadObjectElementOverride(XmlReader, object)