CADability dotNET

The IShowProperty type exposes the following members.

Methods

  NameDescription
Public methodAdded
Called when the entry was added to the control center or to a parent entry. The parameter represents the tree view object to which the entry was added. Each Added is later matched by a call to Removed(IPropertyTreeView).
Public methodChildSelected
Called when a child entry of this entry was selected.
Public methodFocusableControls
Will be called to get the focusable controls of the right hand side of the entry.
Public methodGetContextMenu
Auf einen Label wurde rechts geklickt. Erwartet wird das zugehörige ContextMenu. Wird nur aufgerufen, wenn LabelType das Flag ContextMenu gesetzt hat. Returns the context menu for this entry. Will only be called when ContextMenu is specified in the LabelType property.
Public methodGetValueControl
Returns the Control which represents the right hand side of the entry. Is only required for entries of type SimpleEntry or OwnerDrawEntry. The Control may contain other controls. It is responsible to provide visual feedback to the state of the object it represents
Public methodLabelChanged
Will be called when the text of a label changed because it was edited by the user. Will only be used if Editableis specified in the LabelType property.
Public methodOnDragDrop
Will be called when a windows "drag and drop" operation drops in the space of this object. You may modify the drgevent parameter, especially the Effect.
Public methodOnDragEnter
Will be called when a windows "drag and drop" operation enters the space of this object. You may modify the drgevent parameter, especially the Effect.
Public methodOnDragLeave
Will be called when a windows "drag and drop" operation leaves the space of this object.
Public methodOnDragOver
Will be called when a windows "drag and drop" operation moves over the space of this object. You may modify the drgevent parameter, especially the Effect.
Public methodOnEnterPressed
Alt+Enter was pressed in the controlcenter while this entry was selected
Public methodOnSpecialKey
Will be called when special keys are pressed (e.g. Esc, Enter or PgUp/Down)
Public methodOpened
Notifies the item that its subitems will be shown (IsOpen==true) or that the treeview collapses the subitems (IsOpen==false). The Item should fire the StateChangedEvent event with the appropriate parameters.
Public methodRefresh
Forces the entry to refresh its contents
Public methodRemoved
Matches the calls to Added(IPropertyTreeView). A good place to disconnect events and free resources.
Public methodSelect
Forces this item to be selected in the treeview. The item must be visible.
Public methodSelected
Called whent the entry was selected.
Public methodSetFocus
Will be called when the entry got the focus.
Public methodSetTabIndex
Do not use anymore.
Public methodShowOpen
Opens this item to show the subentries of this item in the treeview, that contains this IShowProperty object. respectively closes or collapses this item to hide the subentries.
Public methodUnSelected
Called whent the entry was unselected.

Properties

  NameDescription
Public propertyEntryType
Returns the type of the entry, see ShowPropertyEntryType.
Public propertyHelpLink
Returns the help link for the help control.
Public propertyHidden
If an IShowProperty object is hidden, it will not appear in the TreeView of the control center. Most Properties are not hidden by default.
Public propertyInfoText
Returns the text for the tooltip to display when the mouse cursor rests on the label.
Public propertyLabelText
Returns the label text, which is usually displayed on the left side of the control.
Public propertyLabelType
Returns the type of the label, see ShowPropertyLabelFlags.
Public propertyOwnerDrawHeight
Returns the height of this entry if it is ownerdrawn.
Public propertyReadOnly
If an IShowProperty object is read only, its value should be fixed. The subProperties should also be read only.
Public propertySubEntries
Returns the array of subentries to this entry.
Public propertySubEntriesCount
Returns the number of subentries if any or 0 if none.

Events

  NameDescription
Public eventStateChangedEvent
Event that is fired when the state of this entry changed, e.g. the entry was selected.

See Also