The FrameBase class is the base class of the Image, TextFrame, ChartFrame, BarcodeFrame and DrawingFrame classes. It implements general frame features like the position in the text, the insertion mode or the distances between the text and the frame.

Syntax

public class FrameBase
Public Class FrameBase

Examples

The following example shows the FrameBase class with three of its properties. The frameBase name is "points", can be resized at runtime and is left aligned.

TXTextControl.FrameBase frameBase = new TXTextControl.FrameBase();

frameBase.Name      = "points";
frameBase.Sizeable  =  true;
frameBase.Alignment = TXTextControl.HorizontalAlignment.Left;
Dim frameBase As TXTextControl.FrameBase = New TXTextControl.FrameBase()

frameBase.Name      = "points"
frameBase.Sizeable  =  True
frameBase.Alignment = TXTextControl.HorizontalAlignment.Left

Methods

Method Description
ChangeZOrder Changes the frame's z-order.

Properties

Property Description
Alignment Gets or sets the frame's horizontal alignment when it is anchored to a paragraph.
Bounds Gets the frame's bounding rectangle relative to the upper left corner of the document.
ID Gets or sets an identifier for the frame.
InsertionMode Gets or sets a value determining whether the frame is treated as a single character or the document's text either flows around or overwrites the frame.
Location Gets or sets, in twips, the frame's current location.
Moveable Determines whether a frame can be moved in the document at run time with the built-in mouse interface.
Name Gets or sets a name for the frame.
Size Gets or sets the frame's size in twips.
Sizeable Determines whether the frame can be resized at run time with the built-in mouse interface.
TextDistances Gets or sets the distances, in twips, between the frame and the document's text.
TextPosition Read only.