Table of Contents

Interface IGeoObjectShowProperty

Namespace
CADability.GeoObject
Assembly
CADability.dll

Implemented by the property entries that show a GeoObject in the property grid, i.e. the entries returned by GetShowProperties(IFrame) (e.g. ShowPropertyText or ShowPropertyPicture). It lets the SelectObjectsAction find the object an entry stands for and the id of the object's context menu, and lets an application modify the context menu of the entry.

public interface IGeoObjectShowProperty

Methods

GetContextMenuId()

Returns the id of the menu definition in the menu resources (e.g. "MenuId.Object.Text") whose items form the context menu of the object. The SelectObjectsAction uses it to offer the menu of a single selected object within the context menu of the selection.

string GetContextMenuId()

Returns

string

the menu id, or null when the object has no menu of its own

GetGeoObject()

Returns the GeoObject this property entry shows.

IGeoObject GetGeoObject()

Returns

IGeoObject

the object shown by this entry

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.

event CreateContextMenueDelegate CreateContextMenueEvent

Event Type

CreateContextMenueDelegate