New to Telerik UI for WinForms? Start a free 30-day trial

Provides RadDock-specific matching of serialized window names to existing controls.

Definition

Namespace:Telerik.WinControls.UI.Docking.Serialization

Assembly:Telerik.WinControls.RadDock.dll

Syntax:

C#
public class DockXmlSerializerBase : ComponentXmlSerializer

Inheritance: objectComponentXmlSerializerDockXmlSerializerBase

Derived Classes: DockXmlSerializerFloatingWindowsXmlResolvingSerializer

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.ReadObjectElement(XmlReader, object)ComponentXmlSerializer.ReadObjectElement(XmlReader, object, object)ComponentXmlSerializer.ProcessReaderAttribute(XmlReader, object, object, PropertyDescriptor)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.ProcessListOverride(XmlReader, object, PropertyDescriptor, IList)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

Creates a new instance of the RadDock-aware serializer base.

C#
public DockXmlSerializerBase(RadDock dock, ComponentXmlSerializationInfo componentSerializationInfo)
Parameters:dockRadDock

RadDock component that is used to write DockWindow states and info or to map existing DockWindows when deserializing

componentSerializationInfoComponentXmlSerializationInfo

Serialization info. By default XmlSerializationInfo could be used.

Properties

Gets the RadDock whose windows are used when matching serialized layout objects.

C#
protected RadDock Dock { get; }

Methods

Reuses a named dock window or document container from the current RadDock when it matches the XML entry.

C#
protected override object MatchExistingItem(XmlReader reader, IList toRead, object parent, PropertyDescriptor parentProperty, string propertyToMatch, string uniquePropertyValue, IList existingInstancesToMatch, ref int foundAtIndex)
Parameters:readerXmlReader

The reader positioned at the object element being matched.

toReadIList

The collection being populated from XML.

parentobject

The object that owns the collection.

parentPropertyPropertyDescriptor

Metadata for the collection property.

propertyToMatchstring

The property name used to identify a matching instance.

uniquePropertyValuestring

The serialized value of the matching property.

existingInstancesToMatchIList

Existing instances available for reuse.

foundAtIndexint

Receives the index of the matched existing instance, or -1 when none is found.

Returns:

object

The matching existing object, or the base serializer's result when this dock has no match.

Overrides: ComponentXmlSerializer.MatchExistingItem(XmlReader, IList, object, PropertyDescriptor, string, string, IList, ref int)