ClassGridViewLayoutSerializer
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.GridView.dll
Syntax:
public class GridViewLayoutSerializer : ComponentXmlSerializer
Inheritance: objectComponentXmlSerializerGridViewLayoutSerializer
Inherited Members
Constructors
GridViewLayoutSerializer(ComponentXmlSerializationInfo)
Initializes a new instance of the GridViewLayoutSerializer class.
Declaration
public GridViewLayoutSerializer(ComponentXmlSerializationInfo componentSerializationInfo)
Parameters
componentSerializationInfo
The component serialization info.
Methods
GetPropertyValue(PropertyDescriptor, object)
Declaration
protected override object GetPropertyValue(PropertyDescriptor property, object propertyOwner)
Parameters
property
propertyOwner
Returns
Overrides
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
protected override object MatchObjectElement(XmlReader reader, object parent, PropertyDescriptor parentProperty, IList toRead, string propertyToMatch, IList existingInstancesToMatch, out int foundAtIndex)
Parameters
reader
parent
parentProperty
toRead
propertyToMatch
existingInstancesToMatch
the list with existing instances
foundAtIndex
index of the element if found in existingInstanceToMatch
Returns
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
reader
listOwner
ownerProperty
list
Returns
True if the list does not require further processing by the deserializer, False to use the default deserialization
Overrides
ProcessProperty(PropertyDescriptor)
Processes the property.
Declaration
protected override bool ProcessProperty(PropertyDescriptor property)
Parameters
property
The property.
Returns
Overrides
ProcessReaderAttribute(XmlReader, object, object, PropertyDescriptor)
Reads a property of an object and subobject the reader is currently positioned on.
Declaration
protected override bool ProcessReaderAttribute(XmlReader reader, object parentObject, object toRead, PropertyDescriptor property)
Parameters
reader
Xml reader instance, positioned on the element to read.
parentObject
The parent object instance, null if there is no parent object information
toRead
The object instance to be processed
property
The property that is being processed. Extracted from reader.Name
Returns
A value indicating whether the attribute has been processed. If [true] the parent class will not process current property/attribute.
Overrides
ReadElementInObject(XmlReader, PropertyDescriptor, object)
Deserializes a specified property of an object
Declaration
protected override void ReadElementInObject(XmlReader reader, PropertyDescriptor property, object toRead)
Parameters
reader
Xml reader, positioned on the element corresponding to the property to deserialize
property
Property descriptor of the property to deserialize
toRead
Object that owns the property to deserialize
Overrides
ReadObjectElementOverride(XmlReader, object)
Override to provide alternative deserialization of objects.