Represents a container for GH_Object instances. Containers are top-level objects in the RCP.
Constructors
RcpGroup
#public RcpGroup()
Properties
Bounds
public virtual Rectangle Bounds { get; set; }
Implements: Bounds
ContentRectangle
#public Rectangle ContentRectangle { get; }
Gets the rectangle taken up by the part of the control that is not the title bar or the borders. If the container is collapsed then this area will have a height of zero.
IconRectangle
#public Rectangle IconRectangle { get; }
Gets the rectangle taken up by the icon in the container bar.
ItemLayoutRectangle
#public Rectangle ItemLayoutRectangle { get; }
Gets the rectangle used for item layouts. This is basically the ContentRectangle minus itempadding on all edges.
Items
#NameRectangle
#public Rectangle NameRectangle { get; }
Gets the rectangle taken up by the title text in the container bar.
OwnerInstanceId
Implements: OwnerInstanceId
TitleRectangle
#public Rectangle TitleRectangle { get; }
Gets the rectangle taken up by the entire container bar.
Methods
Collapse
#public void Collapse()
Expand
#public void Expand()
ImpliedInsertionIndex
#Finds the insertion index implied by the position of a point.
IndexAt
#Gets the item index at the given point.
Parameters:
| pt (Point) | Point to search from. |
Returns: The index of the item at pt or -1 if no item exists at this location.
ItemAt
#Gets the item at the given point.
Parameters:
| pt (Point) | Point to search from. |
Returns: The item at the given point or null if no such item could be found.
LayoutItems
#public void LayoutItems()
Layout all items within the content area. It is the responsibility of the caller to assign the correct dimensions and position to the group bounds. I.e. make sure that the height of the of the Bounds are the same as the DesiredHeight. Layout will not occur when a group is collapsed.
MouseClick
Parameters:
| e (MouseEventArgs) |
Implements: MouseClick
MouseDoubleClick
Parameters:
| e (MouseEventArgs) |
Implements: MouseDoubleClick
MouseDown
Parameters:
| e (MouseEventArgs) |
Implements: MouseDown
MouseMove
Parameters:
| e (MouseEventArgs) |
Implements: MouseMove
MouseUp
Parameters:
| e (MouseEventArgs) |
Implements: MouseUp
ReplaceItem
#Replace an item with a placeholder.
Parameters:
| item (IRcpItem) | Item to replace. |
Returns: True on success, false on failure.
Toggle
#public void Toggle()