TTMSFNCBloxTriangleBlock Class
A diagram block drawn as a triangle. It overrides the shape outline to produce a triangular path while inheriting all other block behavior.
API unit family: TMSFNCBloxCoreBlock
Inherits from: TTMSFNCBloxBlock
Syntax
TTMSFNCBloxTriangleBlock = class(TTMSFNCBloxBlock)
Properties
| Name | Description |
|---|---|
| Alignment | Specifies the horizontal alignment of the block text. (inherited from TTMSFNCBloxBlock) |
| Bottom | Specifies the bottom-most coordinate of the block, in block coordinates. Read-only. (inherited from TTMSFNCBloxBlock) |
| BoundsRect | Specifies the position and size of the block: its left and top coordinates together with its width and height, in block coordinates. (inherited from TTMSFNCBloxBlock) |
| ClipText | Controls whether the block text is clipped to the block shape. When True, text is restricted to the block clipping region; when False, text may extend beyond the shape. (inherited from TTMSFNCBloxBlock) |
| CursorAngle | For internal use. (inherited from TTMSFNCBloxBlock) |
| CursorRect | For internal use. (inherited from TTMSFNCBloxBlock) |
| CursorRotCenter | For internal use. (inherited from TTMSFNCBloxBlock) |
| Fill | Contains the background fill of the block, including color, gradient and fill type. (inherited from TTMSFNCBloxBlock) |
| Height | Specifies the height of the block. (inherited from TTMSFNCBloxBlock) |
| Left | Specifies the left coordinate of the block, in block coordinates. (inherited from TTMSFNCBloxBlock) |
| MinHeight | Specifies the minimum height allowed for the block. The block cannot be resized to a height smaller than this value. (inherited from TTMSFNCBloxBlock) |
| MinWidth | Specifies the minimum width allowed for the block. The block cannot be resized to a width smaller than this value. (inherited from TTMSFNCBloxBlock) |
| Picture | Contains the background picture of the block. When the picture is empty, no picture is displayed. (inherited from TTMSFNCBloxBlock) |
| PictureMode | Defines how the background picture is rendered inside the block shape. (inherited from TTMSFNCBloxBlock) |
| Right | Specifies the right-most coordinate of the block, in block coordinates. Read-only. (inherited from TTMSFNCBloxBlock) |
| RotationCenter | Specifies the rotation center of the block in relative (percentage) coordinates. A value of (50, 50) places the rotation center at the middle of the block. (inherited from TTMSFNCBloxBlock) |
| RotationStep | Specifies the step, in degrees, applied while the user rotates the block interactively. Use larger steps (for example 30, 45 or 90) to snap rotation to specific angles. (inherited from TTMSFNCBloxBlock) |
| Shadow | Contains the shadow of the block. Use the returned shadow object to set shadow visibility, offset and color. (inherited from TTMSFNCBloxBlock) |
| Shape | Specifies the geometric shape used to draw the block. (inherited from TTMSFNCBloxBlock) |
| Strings | Reads or writes the text displayed by the block, one line per string. (inherited from TTMSFNCBloxBlock) |
| Top | Specifies the top coordinate of the block, in block coordinates. (inherited from TTMSFNCBloxBlock) |
| VertAlign | Specifies the vertical alignment of the block text. (inherited from TTMSFNCBloxBlock) |
| Width | Specifies the width of the block. (inherited from TTMSFNCBloxBlock) |
| WordWrap | Specifies whether the block text wraps to multiple lines. When True, text that does not fit on a single line wraps within the block. (inherited from TTMSFNCBloxBlock) |
Methods
| Name | Description |
|---|---|
| AnchorLinkChanged | Called whenever a link point of the block changes the anchor it is attached to. (inherited from TTMSFNCBloxBlock) |
| AngledSurroundRect | Returns the four corner points of the block rotated by the given angle, in client coordinates. (inherited from TTMSFNCBloxBlock) |
| BloxRotCenter | Returns the current position of the block's rotation center, expressed in client coordinates. (inherited from TTMSFNCBloxBlock) |
| CreateDefaultLinkPoints | Clears the existing link points and creates the four default link points at the middle of the top, bottom, left and right edges of the block. (inherited from TTMSFNCBloxBlock) |
| ElementRect | Returns the rectangle occupied by the block, equal to BoundsRect. (inherited from TTMSFNCBloxBlock) |
| EndCursorPlacement | For internal use only. (inherited from TTMSFNCBloxBlock) |
| GetHandlePos | Returns the position of the given handle in client coordinates, taking the handle style, current bounds and rotation of the block into account. (inherited from TTMSFNCBloxBlock) |
| GetLinkPoint | Returns the position of the given link point in client coordinates, taking the current bounds and rotation of the block into account. (inherited from TTMSFNCBloxBlock) |
| GetSurroundBlockPath | Fills the supplied path with the outline that surrounds the current block, in client coordinates, for use in path-based drawing modes. (inherited from TTMSFNCBloxBlock) |
| GetTextCellRect | Returns the rectangle, in block coordinates, where a text cell is drawn. The base implementation returns the full block rectangle. Override in descendants to draw text in a different region, for example only the top half of the block. (inherited from TTMSFNCBloxBlock) |
| HandleMoving | Updates the block while one of its handles is being dragged. Resize handles change the bounds, the rotate handle changes the angle and the rotation-center handle moves the rotation center. (inherited from TTMSFNCBloxBlock) |
| HandlesChanged | Called whenever the handles collection of the block changes. (inherited from TTMSFNCBloxBlock) |
| InitDrawer | For internal use only. (inherited from TTMSFNCBloxBlock) |
| Inserted | Performs initialization that depends on the block being part of a diagram. Called when the block has been inserted into its parent diagram. (inherited from TTMSFNCBloxBlock) |
| LinkedAnchorChanged | Called when an element this block is anchored to changes, allowing the block to react to the change of the anchored element. (inherited from TTMSFNCBloxBlock) |
| MouseEnter | Called whenever the mouse pointer enters the block. (inherited from TTMSFNCBloxBlock) |
| MouseLeave | Called whenever the mouse pointer leaves the block. (inherited from TTMSFNCBloxBlock) |
| MovePosition | Moves the block by the given horizontal and vertical offsets. (inherited from TTMSFNCBloxBlock) |
| PointInElement | Tests whether the given position lies inside the block shape, using the supplied path as a scratch buffer for the surrounding outline. (inherited from TTMSFNCBloxBlock) |
| SetBounds | Sets the position and size of the block in a single call. (inherited from TTMSFNCBloxBlock) |
| SetPosition | Moves the top-left corner of the block to the given position, keeping its size. (inherited from TTMSFNCBloxBlock) |
| StartCursorPlacement | For internal use only. (inherited from TTMSFNCBloxBlock) |
| StartMoving | Called when an interactive move of the block starts. (inherited from TTMSFNCBloxBlock) |
| StartMovingHandle | Called when an interactive handle drag starts. (inherited from TTMSFNCBloxBlock) |
| SurroundRect | Returns the axis-aligned rectangle that encloses the block taking its current rotation angle into account. (inherited from TTMSFNCBloxBlock) |
| UpdateBlockHandles | Recreates the default handles for the block: the eight resize handles (top-left, top, top-right, right, bottom-right, bottom, bottom-left and left), the rotation handle and the rotation-center handle. (inherited from TTMSFNCBloxBlock) |
| UpdateDrawing | Called while the block is being drawn interactively. (inherited from TTMSFNCBloxBlock) |
| UpdateInserting | Updates the block bounds while it is being inserted interactively, using the start and end points carried by the supplied information. (inherited from TTMSFNCBloxBlock) |
| UpdateMoving | Updates the block position while it is being moved interactively. Positions the move cursor or commits the new bounds depending on the action carried by the supplied information. (inherited from TTMSFNCBloxBlock) |