Search
Box Members
Properties Methods
 


The Box class represents diagram nodes that can have distinct shapes. Boxes might represent nodes in a graph, tree, process diagram, etc.

The following tables list the members exposed by the Box type.

 Public Properties

  Name Description

AllowContainment

( a feature of FlowChartX Pro edition)

Gets or sets a value indicating whether users are allowed to put this box in a container.

AllowFlip

Gets or sets a value indicating whether the node's shape flips when an edge is dragged over its opposite edge.

AllowIncomingArrows

Gets or sets a value indicating whether users are allowed to draw incoming arrows to this box.

AllowInplaceEdit

Gets or sets a value indicating whether users are allowed to edit the text of this box.

AllowOutgoingArrows

Gets or sets a value indicating whether users are allowed to draw outgoing arrows from this box.

AnchorPattern

Gets or sets the AnchorPattern object defining the points at which arrows can connect to this box.

AutoResizeContainer

Gets or sets a value indicating whether container boxes should resize automatically to fit their children.

AxControl

( a feature of FlowChartX Pro edition)

Gets a reference to the ActiveX control hosted in this box.

AxControlId

Gets or sets the type of the ActiveX control hosted in this box.

AxRawPtr

( a feature of FlowChartX Pro edition)

Gets the raw IUnknown interface pointer to the ActiveX control hosted in this box.

Bottom

Gets the Y coordinate of the bottom side of the box bounding rectangle.

Constraints

Gets or sets the constraints applied to the location and size of this box.

ContainedItems

( a feature of FlowChartX Pro edition)

Gets the list of items contained in the box.

ControlActivation

Gets or sets a value indicating how the ActiveX control hosted in this box is activated.

CustomDraw

Gets or sets the type of custom drawing performed on this box.

DecorationColor

Gets or sets the color of the decoration lines that are defined for the Shape of this box.

EnableStyledText

Gets or sets a value indicating whether styled text rendering is enabled.

Expandable

Gets or sets a value indicating whether users are allowed to expand or collapse the tree branch that starts from the box.

Expanded

Gets or sets a value indicating whether the tree that starts from this box is expanded or collapsed.

FeedbackColor

Gets or sets the color of the box feedback frame.

FeedbackPenStyle

Gets or sets the line style of the box feedback frame.

FeedbackPenWidth

Gets or sets the width of the box feedback frame.

FillColor

Gets or sets the color used to fill the box interior.

FillColor2

Gets or sets a color used to fill the box interior with a gradient.

FillColorAlpha

Gets or sets a value defining the transparency of the box fill color.

FillStyle

Gets or sets the gradient mode used to fill the interior of this box.

FlipX

Gets or sets a value indicating whether the node's shape is flipped horizontally.

FlipY

Gets or sets a value indicating whether the node's shape is flipped vertically.

Font

Gets or sets the font used to render the text of this box.

FrameColor

Gets or sets the color of the pen used to draw the box border lines.

FrameColorAlpha

Gets or sets the transparency of the box border.

HyperLink

Gets or sets the hyperlink associated with this box.

IgnoreLayout

Gets or sets a value indicating whether the position of this box can be changed by automatic layout methods.

IncmAnchor

Gets or sets at which anchor points incoming arrows are allowed to connect.

IncomingArrows

Gets the collection of arrows that enter into this box.

LayoutGap

( a feature of FlowChartX Pro edition)

Gets or sets the amount of space between items in a container box.

LayoutStyle

( a feature of FlowChartX Pro edition)

Gets or sets a value indicating how the items in a container box are laid out.

Left

Gets the X coordinate of the left side of the box bounding rectangle.

Locked

Gets or sets a value indicating whether users are allowed to select and modify this box.

MasterGroup

Gets a reference to the group to which the box is attached.

MnpHandlesMask

Gets or sets what modifications can be applied to a box through its selection handles.

Obstacle

Gets or sets a value indicating whether this box should be considered an obstacle by the arrow-routing algorithm.

Opacity

Gets or sets opacity level applied to all graphic elements of the box.

OutgAnchor

Gets or sets at which anchor points outgoing arrows are allowed to connect.

OutgoingArrows

Gets a collection of arrows that go out from this box.

PenStyle

Gets or sets the style of the pen used to draw the box frame lines.

PenWidth

Gets or sets the width of the pen used to draw the box frame lines.

Picture

Gets or sets the image displayed inside the box.

PicturePos

Gets or sets the alignment and stretch mode of the box Picture.

PlainText

Gets the plain text of this box.

Printable

Gets or sets a value indicating whether this box is drawn on paper when printing.

Right

Gets the X coordinate of the right side of the box bounding rectangle.

RotateContents

Gets or sets a value indicating whether the Picture is rotated when the box is rotated.

RotateText

Gets or sets a value indicating whether the text in a box is rotated when the box is rotated.

RotationAngle

Gets or sets the angle at which this box is rotated.

Selected

Gets a value indicating whether the box is selected.

SelStyle

Gets or sets a value indicating how box selection handles behave and what they look like.

ShadowOffsetX

Gets or sets the horizontal offset of a shadow from the box that casts it.

ShadowOffsetY

Gets or sets the vertical offset of a shadow from the box that casts it.

Shape

Gets or sets the shape of a box whose Style is set to bsShape.

ShapeOrientation

Gets or sets a shape rotation applied when calculating the shape vertex coordinates inside the box bounding rectangle.

Style

Gets or sets the style of this box.

SubordinateGroup

Gets a reference to the group of objects that are attached to this box.

Tag

Gets or sets a custom integer value associated with this box.

Text

Gets or sets the text to display inside this box.

TextAntiAliasing

Gets or sets the type of text anti aliasing.

TextColor

Gets or sets the color used to draw the box' Text.

TextStyle

Gets or sets the alignment style of the box' Text.

ToolTip

Gets or sets a short text message displayed when the mouse pointer rests over this box.

Top

Gets the Y coordinate of the top side of the box bounding rectangle.

Transparent

Gets or sets a value indicating whether the box frame lines and interior should be painted.

UserData

Gets or sets a custom integer value associated with this box.

UserString

Gets or sets a custom string value associated with this box.

VariantTag

Gets or sets a custom OLE VARIANT value associated with this box.

Visible

Gets or sets value indicating whether this box is visible.

Weight

Gets or sets a weight value used in layout and path-finding algorithms.

WindowFrame

Gets or sets the border style of the window in which a hosted ActiveX control resides.

ZIndex

Gets or sets the position of this box in the Z order.

 Public Methods

  Name Description

ActivateControl

( a feature of FlowChartX Pro edition)

Activates the ActiveX control hosted in this box.

AddAeroEffect

Adds an Aero effect to this box.

AddGlassEffect

Adds a Glass effect to this box.

AddLabel

Adds the specified label to this node.

BeginEditLabel

Enters inplace-edit mode, letting users edit the text of the specified label.

BeginInplaceEdit

Enters inplace-edit mode, allowing users to edit the text of this box.

BeginUndoRecord

( a feature of FlowChartX Pro edition)

Starts recording modifications made to this box for later undo.

BindToControl

( a feature of FlowChartX Pro edition)

Binds a Windows control or a VB control to this box.

BoundingRect

Gets the box bounding rectangle coordinates.

ClearEffects

Removes all effects from this box.

Clone

Creates a copy of this box.

Collapse

Collapses the tree branch that starts from this box.

DeactivateControl

( a feature of FlowChartX Pro edition)

Deactivates the ActiveX control hosted in this box.

EndInplaceEdit

Exits inplace-edit mode, and either accepts or rejects any changes made to the text.

EndUndoRecord

( a feature of FlowChartX Pro edition)

Stops tracking modifications made to the box and adds a modification record to the undo queue.

Expand

Expands the tree branch that starts from this box.

FitSizeToPicture

Makes the box as big as the picture assigned to it.

FitSizeToText

Makes the box big enough so that its text is entirely visible.

GetCBox

 

GetLabel

Gets the NodeLabel at the specified position in box' label list.

GetLabelCount

Gets the number of labels associated with this box.

GetShape

Returns the id of a shape from custom shape library if one is assigned to this box.

LabelFromPoint

Returns the label whose layout rectangle contains the specified point.

LoadPicFromRes

Loads an image from the resources embedded in a .dll or .exe file and assigns it to the box' Picture.

LoadPicture

Loads an image from the specified file and assigns it to the box' Picture.

LoadPredefShape

Loads a predefined polygonal shape definition and assigns it to this box.

MoveTo

Moves the box to the specified location.

PutInContainer

( a feature of FlowChartX Pro edition)

Puts this box into a container box.

RemoveFromContainer

( a feature of FlowChartX Pro edition)

Removes this box from its container.

RemoveLabel

Removes the specified label from this box.

Repaint

Forces the box to redraw itself.

ResizeToFitChildren

( a feature of FlowChartX Pro edition)

Resizes a container box to fit its child nodes.

SetPolyShape

Sets the shape of box whose style is set to bsPolygon.

SetPolyShapeArray

Sets the shape of box whose style is set to bsPolygon.

SetRect

Sets the box' location and size.

SetShape

( a feature of FlowChartX Pro edition)

Sets the shape of a box whose style is set to bsLibShape.

SetSize

Sets the size of this box.

SetTextPadding

Sets padding space between the box boundaries and text.

TextFits

Checks if node's text fits within the node's geometry.

Unbind

( a feature of FlowChartX Pro edition)

Unbinds the window currently bound to this box.

ZBottom

Moves the box to the bottom of the Z order.

ZLevelDown

Moves the box one position down in the Z order.

ZLevelUp

Moves the box one position up in the Z order.

ZTop

Moves the box to the top of the Z order.

 See Also