Table of Contents

Class ShowPropertyCircle

Namespace
CADability.UserInterface
Assembly
CADability.dll

Shows the properties of a circle.

public class ShowPropertyCircle : PropertyEntryImpl, IPropertyEntry, IShowProperty, IDisplayHotSpots, ICommandHandler, IGeoObjectShowProperty
Inheritance
ShowPropertyCircle
Implements
Inherited Members

Constructors

ShowPropertyCircle(Ellipse, IFrame)

public ShowPropertyCircle(Ellipse circle, IFrame frame)

Parameters

circle Ellipse
frame IFrame

Properties

ContextMenu

Must be overridden, when Flags contains PropertyEntryType.ContextMenu. See ContextMenu

public override MenuWithHandler[] ContextMenu { get; }

Property Value

MenuWithHandler[]

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

PropertyEntryType

SubItems

Must be overridden, when Flags contains PropertyEntryType.HasSubEntries. See SubItems

public override IPropertyEntry[] SubItems { get; }

Property Value

IPropertyEntry[]

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 propertyTreeView)

Parameters

propertyTreeView IPropertyPage

OnCommand(string)

Process the command with the given MenuId. Return true if handled, false otherwise.

public virtual bool OnCommand(string MenuId)

Parameters

MenuId string

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

MenuId string
CommandState CommandState

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

IsOpen bool

ReloadProperties()

public void ReloadProperties()

Removed(IPropertyPage)

public override void Removed(IPropertyPage propertyTreeView)

Parameters

propertyTreeView IPropertyPage

the IPropertyTreeView from which it was removed

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

CreateContextMenueDelegate

HotspotChangedEvent

public event HotspotChangedDelegate HotspotChangedEvent

Event Type

HotspotChangedDelegate