Class ShowPropertyEllipse
- Namespace
- CADability.UserInterface
- Assembly
- CADability.dll
Shows the properties of an ellipse
public class ShowPropertyEllipse : PropertyEntryImpl, IPropertyEntry, IShowProperty, IDisplayHotSpots, ICommandHandler, IGeoObjectShowProperty
- Inheritance
-
ShowPropertyEllipse
- Implements
- Inherited Members
Constructors
ShowPropertyEllipse(Ellipse, IFrame)
public ShowPropertyEllipse(Ellipse ellipse, IFrame frame)
Parameters
Properties
ContextMenu
Must be overridden, when Flags contains PropertyEntryType.ContextMenu. See ContextMenu
public override MenuWithHandler[] ContextMenu { get; }
Property Value
Flags
Implementation of Flags: the derived class states what the entry is and what the user can do with it. The flags must match the overridden members, e.g. HasSubEntries requires SubItems, ValueEditable requires Value and EndEdit(bool, bool, string), DropDown requires GetDropDownList() and ListBoxSelected(int).
public override PropertyEntryType Flags { get; }
Property Value
LabelText
An explicit label text. When set (not null) it is shown instead of the text from the StringTable; use it for entries whose label is not a fixed resource string, e.g. the name of an item. Call Refresh() after changing it while the entry is displayed.
public override string LabelText { get; }
Property Value
SubItems
Must be overridden, when Flags contains PropertyEntryType.HasSubEntries. See SubItems
public override IPropertyEntry[] SubItems { get; }
Property Value
Methods
Added(IPropertyPage)
Implementation of Added(IPropertyPage): memorizes the page in propertyPage and reports Added. Override it to subscribe to events while the entry is displayed, and call the base implementation.
public override void Added(IPropertyPage page)
Parameters
pageIPropertyPage
OnCommand(string)
Process the command with the given MenuId. Return true if handled, false otherwise.
public virtual bool OnCommand(string menuId)
Parameters
menuIdstringId of the menu command to be processed
Returns
- bool
true, if handled, false otherwise
OnUpdateCommand(string, CommandState)
Update the command user interface of the given command. Return true if handled, false otherwise.
public virtual bool OnUpdateCommand(string menuId, CommandState commandState)
Parameters
menuIdstringId of the menu command to be processed
commandStateCommandStateState object to modify if appropriate
Returns
- bool
true, if handled, false otherwise
Opened(bool)
Implementation of Opened(bool): reports OpenSubEntries or CollapseSubEntries and, when the entry was opened, makes it the Parent of its SubItems and passes ReadOnly on to them.
public override void Opened(bool isOpen)
Parameters
isOpenbooltrue: the entry was opened, false: it was closed
ReloadProperties()
public void ReloadProperties()
Removed(IPropertyPage)
Implementation of Removed(IPropertyPage): closes the undo context of the project (an edit may have been interrupted by removing the entry), reports Removed and forgets the page. Override it to unsubscribe from events, and call the base implementation.
public override void Removed(IPropertyPage page)
Parameters
pageIPropertyPage
Events
CreateContextMenueEvent
Raised when the context menu of this entry is built, after the default items of the object have been loaded. The handler gets the list of items and may add, remove or reorder them.
public event CreateContextMenueDelegate CreateContextMenueEvent
Event Type
HotspotChangedEvent
public event HotspotChangedDelegate HotspotChangedEvent