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; }
inherited fromRcpItem
Bounds

Collapsed

#
public bool Collapsed { get; }

Colour

#
Gets or sets the color of this group.
public Color Colour { get; set; }

ContentRectangle

#
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.
public Rectangle ContentRectangle { get; }

DesiredHeight

#
public override int DesiredHeight { get; }

Expanded

#
public bool Expanded { get; }

IconRectangle

#
Gets the rectangle taken up by the icon in the container bar.
public Rectangle IconRectangle { get; }

ItemCount

#
public int ItemCount { get; }

ItemLayoutRectangle

#
Gets the rectangle used for item layouts. This is basically the ContentRectangle minus itempadding on all edges.
public Rectangle ItemLayoutRectangle { get; }

Items

#
public IEnumerable<IRcpItem> Items { get; }

Name

#
Gets or sets the name of this group.
public string Name { get; set; }

NameRectangle

#
Gets the rectangle taken up by the title text in the container bar.
public Rectangle NameRectangle { get; }

OwnerInstanceId

public virtual Guid OwnerInstanceId { get; }
inherited fromRcpItem
OwnerInstanceId

TitleRectangle

#
Gets the rectangle taken up by the entire container bar.
public Rectangle TitleRectangle { get; }

Methods

AddItem

#
public void AddItem(
item,
index
)

AddItem

#
public void AddItem(
item,
rcpObject,
index
)

AddItem

#
public void AddItem(
item,
rcpObject
)

AddItem

#
public void AddItem()

Collapse

#
public void Collapse()

Expand

#
public void Expand()

FindItem

#
public IRcpItem FindItem()

ImpliedInsertionIndex

#
Finds the insertion index implied by the position of a point.
public bool ImpliedInsertionIndex(
Point
pt,
Point for insertion test.
ref double
distance,
Distance from insertion location to test point.
ref int
index
Insertion index.
)

IndexAt

#
Gets the item index at the given point.
public int IndexAt(
Point
pt
Point to search from.
)
The index of the item at pt or -1 if no item exists at this location.

ItemAt

#
Gets the item at the given point.
public IRcpItem ItemAt(
Point
pt
Point to search from.
)
The item at the given point or null if no such item could be found.

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.
public void LayoutItems()

MouseClick

public virtual GH_ObjectResponse MouseClick()
inherited fromRcpItem
MouseClick

MouseDoubleClick

public virtual GH_ObjectResponse MouseDoubleClick()
inherited fromRcpItem
MouseDoubleClick

MouseDown

public virtual GH_ObjectResponse MouseDown()
inherited fromRcpItem
MouseDown

MouseMove

public virtual GH_ObjectResponse MouseMove()
inherited fromRcpItem
MouseMove
MouseUp

OnDelete

#
public override void OnDelete()
RcpItem.OnDelete

Read

#
public bool Read(
reader
)
Read

RemoveItem

#
public void RemoveItem(
index
)

RemoveItem

#
public void RemoveItem()

RemovePlaceHolders

#
Remove all placeholders from this group.
public void RemovePlaceHolders()

Render

#
public override void Render(
graphics
)
RcpItem.Render

ReplaceItem

#
Replace an item with a placeholder.
public bool ReplaceItem(
item
Item to replace.
)
True on success, false on failure.

Toggle

#
public void Toggle()

Write

#
public bool Write(
writer
)
Write