Table of Contents

Class LayoutDocumentPane

Namespace
HeBianGu.Control.Dock.Layout
Assembly
HeBianGu.Control.Dock.dll

Implements a layout element that contains a collection of LayoutDocument objects. This is the viewmodel for a LayoutDocumentPaneControl.

[Serializable]
public class LayoutDocumentPane : LayoutPositionableGroup<LayoutContent>, ILayoutGroup, IXmlSerializable, ILayoutDocumentPane, ILayoutPanelElement, ILayoutPane, ILayoutContainer, ILayoutElementWithVisibility, ILayoutElement, INotifyPropertyChanged, INotifyPropertyChanging, ILayoutContentSelector
Inheritance
LayoutDocumentPane
Implements
Inherited Members
Extension Methods

Constructors

LayoutDocumentPane()

Standard class constructor

public LayoutDocumentPane()

LayoutDocumentPane(LayoutContent)

Class constructor from LayoutContent to be inserted in Children collection of this object.

public LayoutDocumentPane(LayoutContent firstChild)

Parameters

firstChild LayoutContent

Properties

ChildrenSorted

Gets a sorted collection (using the default comparer) of childrens from the Children property.

public IEnumerable<LayoutContent> ChildrenSorted { get; }

Property Value

IEnumerable<LayoutContent>

IsDirectlyHostedInFloatingWindow

Gets whether the pane is hosted directly in a floating window (LayoutDocumentFloatingWindow).

public bool IsDirectlyHostedInFloatingWindow { get; }

Property Value

bool

IsHostedInFloatingWindow

Gets whether the pane is hosted in a floating window.

public bool IsHostedInFloatingWindow { get; }

Property Value

bool

SelectedContent

Defines an API for interacting with (selected) content in a pane.

public LayoutContent SelectedContent { get; }

Property Value

LayoutContent

SelectedContentIndex

Gets/sets the index of the selected content in the pane.

public int SelectedContentIndex { get; set; }

Property Value

int

ShowHeader

Gets/sets whether to show the header or not.

public bool ShowHeader { get; set; }

Property Value

bool

Methods

ChildMoved(int, int)

protected override void ChildMoved(int oldIndex, int newIndex)

Parameters

oldIndex int
newIndex int

ConsoleDump(int)

public override void ConsoleDump(int tab)

Parameters

tab int

GetVisibility()

protected override bool GetVisibility()

Returns

bool

IndexOf(LayoutContent)

Gets the index of the content in the Children collection or -1

public int IndexOf(LayoutContent content)

Parameters

content LayoutContent

Returns

int

OnChildrenCollectionChanged()

Raise an event to inform supscribers that the children collection down the tree of this object has changed.

protected override void OnChildrenCollectionChanged()

OnParentChanged(ILayoutContainer, ILayoutContainer)

Provides derived classes an opportunity to handle changes to the Parent property.

protected override void OnParentChanged(ILayoutContainer oldValue, ILayoutContainer newValue)

Parameters

oldValue ILayoutContainer
newValue ILayoutContainer

ReadXml(XmlReader)

provides a standard overridable implementation for deriving classes.

public override void ReadXml(XmlReader reader)

Parameters

reader XmlReader

WriteXml(XmlWriter)

provides a standard overridable implementation for deriving classes.

public override void WriteXml(XmlWriter writer)

Parameters

writer XmlWriter