Class MultiViewProperty
- Namespace
- CADability.UserInterface
- Assembly
- CADability.dll
Property entry that groups the property entries of several views (IView) of a project under one title in the property grid and provides the context menu for managing the views ("MenuId.ViewProperty").
public class MultiViewProperty : IShowPropertyImpl, IShowProperty, IPropertyEntry
- Inheritance
-
MultiViewProperty
- Implements
- Inherited Members
Constructors
MultiViewProperty(IView[], IFrame)
Creates the entry for the given views; their property entries (GetShowProperties(IFrame)) become the sub entries.
public MultiViewProperty(IView[] condorViews, IFrame frame)
Parameters
condorViewsIView[]The views to show
frameIFrameThe frame the views belong to; its project handles the context menu
Properties
ContextMenu
Implementation of ContextMenu: the default returns null. An entry whose LabelType contains ContextMenu must override it.
public override MenuWithHandler[] ContextMenu { get; }
Property Value
EntryType
Overrides EntryType, returns GroupTitle.
public override ShowPropertyEntryType EntryType { get; }
Property Value
LabelType
How the label of this entry behaves (see ShowPropertyLabelFlags): whether it can be selected or edited, is bold or has a context menu. The default implementation returns Selectable.
public override ShowPropertyLabelFlags LabelType { get; }
Property Value
SubEntries
The sub entries shown below this entry when it is opened in the property page. The default implementation has none and returns an empty array.
public override IShowProperty[] SubEntries { get; }
Property Value
SubEntriesCount
The number of SubEntries, 0 for an entry that cannot be opened. The default implementation returns 0.
public override int SubEntriesCount { get; }
Property Value
Methods
Removed(IPropertyTreeView)
Implementation of Removed(IPropertyTreeView), raises the StateChangedEvent
public override void Removed(IPropertyTreeView propertyTreeView)
Parameters
propertyTreeViewIPropertyTreeViewremoved from this IPropertyTreeView