Qyoto
4.0.5
Qyoto is a C# language binding for Qt
|
The QTextFrameFormat class provides formatting information for frames in a QTextDocument. More...
Public Member Functions | |
QTextFrameFormat () | |
| |
QTextFrameFormat (QTextFrameFormat copy) | |
| |
override void | CreateProxy () |
new bool | IsValid () |
| |
new void | SetHeight (double height) |
| |
new void | SetWidth (double width) |
| |
new void | Dispose () |
Public Member Functions inherited from QtGui.QTextFormat | |
override bool | Equals (object o) |
override int | GetHashCode () |
QTextFormat () | |
| |
QTextFormat (QTextFormat rhs) | |
| |
QTextFormat (int type) | |
| |
new bool | BoolProperty (int propertyId) |
| |
new QBrush | BrushProperty (int propertyId) |
| |
new void | ClearBackground () |
| |
new void | ClearForeground () |
| |
new void | ClearProperty (int propertyId) |
| |
new QColor | ColorProperty (int propertyId) |
| |
new double | DoubleProperty (int propertyId) |
| |
new bool | HasProperty (int propertyId) |
| |
new int | IntProperty (int propertyId) |
| |
new bool | IsBlockFormat () |
| |
new bool | IsCharFormat () |
| |
new bool | IsFrameFormat () |
| |
new bool | IsImageFormat () |
| |
new bool | IsListFormat () |
| |
new bool | IsTableCellFormat () |
| |
new bool | IsTableFormat () |
| |
new bool | IsValid () |
| |
new QTextLength | LengthProperty (int propertyId) |
| |
new System.Collections.Generic.List < QTextLength > | LengthVectorProperty (int propertyId) |
| |
new void | Merge (QTextFormat other) |
| |
new QPen | PenProperty (int propertyId) |
| |
new System.Collections.Generic.Dictionary < System.Int32, System.Object > | Properties () |
| |
new object | property (int propertyId) |
| |
new int | PropertyCount () |
| |
new void | SetProperty (int propertyId, object value) |
| |
new void | SetProperty (int propertyId, System.Collections.Generic.List< QTextLength > lengths) |
| |
new string | StringProperty (int propertyId) |
| |
new QTextBlockFormat | ToBlockFormat () |
| |
new QTextCharFormat | ToCharFormat () |
| |
new QTextFrameFormat | ToFrameFormat () |
| |
new QTextImageFormat | ToImageFormat () |
| |
new QTextListFormat | ToListFormat () |
| |
new QTextTableCellFormat | ToTableCellFormat () |
| |
new QTextTableFormat | ToTableFormat () |
| |
new int | Type () |
| |
new void | Dispose () |
Protected Member Functions | |
QTextFrameFormat (System.Type dummy) | |
QTextFrameFormat (QTextFormat fmt) | |
| |
Protected Member Functions inherited from QtGui.QTextFormat | |
QTextFormat (System.Type dummy) | |
Properties | |
new double | Border [get, set] |
| |
new QBrush | BorderBrush [get, set] |
| |
new QTextFrameFormat.BorderStyle | borderStyle [get, set] |
| |
new double | BottomMargin [get, set] |
| |
new QTextLength | Height [get, set] |
| |
new double | LeftMargin [get, set] |
| |
new double | Margin [get, set] |
| |
new double | Padding [get, set] |
| |
new QTextFormat.PageBreakFlag | PageBreakPolicy [get, set] |
| |
new QTextFrameFormat.Position | position [get, set] |
| |
new double | RightMargin [get, set] |
| |
new double | TopMargin [get, set] |
| |
new QTextLength | Width [get, set] |
| |
Properties inherited from QtGui.QTextFormat | |
new QBrush | Background [get, set] |
| |
new QBrush | Foreground [get, set] |
| |
new Qt.LayoutDirection | LayoutDirection [get, set] |
| |
new int | ObjectIndex [get, set] |
| |
new int | ObjectType [get, set] |
| |
virtual System.IntPtr | SmokeObject [get, set] |
static new QMetaObject | StaticMetaObject [get] |
Additional Inherited Members | |
Static Public Member Functions inherited from QtGui.QTextFormat | |
static bool | operator!= (QTextFormat arg1, QTextFormat arg2) |
| |
static bool | operator== (QTextFormat arg1, QTextFormat arg2) |
| |
Protected Attributes inherited from QtGui.QTextFormat | |
SmokeInvocation | interceptor |
The QTextFrameFormat class provides formatting information for frames in a QTextDocument.
A text frame groups together one or more blocks of text, providing a layer of structure larger than the paragraph. The format of a frame specifies how it is rendered and positioned on the screen. It does not directly specify the behavior of the text formatting within, but provides constraints on the layout of its children.
The frame format defines the width() and height() of the frame on the screen. Each frame can have a border() that surrounds its contents with a rectangular box. The border is surrounded by a margin() around the frame, and the contents of the frame are kept separate from the border by the frame's padding(). This scheme is similar to the box model used by Cascading Style Sheets for HTML pages.
The position() of a frame is set using setPosition() and determines how it is located relative to the surrounding text.
The validity of a QTextFrameFormat object can be determined with the isValid() function.
See also QTextFrame and QTextBlockFormat.
This enum describes different border styles for the text frame.
This enum was introduced or modified in Qt 4.3.
See also borderStyle() and FrameBorderStyle.
This enum describes how a frame is located relative to the surrounding text.
See also position() and CssFloat.
|
protected |
QtGui.QTextFrameFormat.QTextFrameFormat | ( | ) |
Constructs a text frame format object with the default properties.
|
protected |
Constructs a text frame format object with the default properties.
QtGui.QTextFrameFormat.QTextFrameFormat | ( | QTextFrameFormat | copy | ) |
Constructs a text frame format object with the default properties.
|
virtual |
Reimplemented from QtGui.QTextFormat.
Reimplemented in QtGui.QTextTableFormat.
new void QtGui.QTextFrameFormat.Dispose | ( | ) |
new bool QtGui.QTextFrameFormat.IsValid | ( | ) |
Returns true if the format description is valid; otherwise returns false.
new void QtGui.QTextFrameFormat.SetHeight | ( | double | height | ) |
Sets the frame's height.
See also height().
new void QtGui.QTextFrameFormat.SetWidth | ( | double | width | ) |
Sets the frame's border rectangle's width.
See also width() and QTextLength.
|
getset |
Returns the width of the border in pixels.
Sets the width (in pixels) of the frame's border.
|
getset |
Returns the brush used for the frame's border.
This function was introduced in Qt 4.3.
Sets the brush used for the frame's border.
This function was introduced in Qt 4.3.
|
getset |
Returns the style of the frame's border.
This function was introduced in Qt 4.3.
Sets the style of the frame's border.
This function was introduced in Qt 4.3.
|
getset |
Returns the width of the frame's bottom margin in pixels.
This function was introduced in Qt 4.3.
Sets the frame's bottom margin in pixels.
This function was introduced in Qt 4.3.
|
getset |
Returns the height of the frame's border rectangle.
Sets the frame's height.
|
getset |
Returns the width of the frame's left margin in pixels.
This function was introduced in Qt 4.3.
Sets the frame's left margin in pixels.
This function was introduced in Qt 4.3.
|
getset |
Returns the width of the frame's external margin in pixels.
Sets the frame's margin in pixels. This method also sets the left, right, top and bottom margins of the frame to the same value. The individual margins override the general margin.
|
getsetadd |
Returns the width of the frame's internal padding in pixels.
Sets the width of the frame's internal padding in pixels.
|
getset |
Returns the currently set page break policy for the frame/table. The default is QTextFormat::PageBreak_Auto.
This function was introduced in Qt 4.2.
Sets the page break policy for the frame/table to policy.
This function was introduced in Qt 4.2.
|
getset |
Returns the positioning policy for frames with this frame format.
Sets the policy for positioning frames with this frame format.
|
getset |
Returns the width of the frame's right margin in pixels.
This function was introduced in Qt 4.3.
Sets the frame's right margin in pixels.
This function was introduced in Qt 4.3.
|
getset |
Returns the width of the frame's top margin in pixels.
This function was introduced in Qt 4.3.
Sets the frame's top margin in pixels.
This function was introduced in Qt 4.3.
|
getset |
Returns the width of the frame's border rectangle.
Sets the frame's border rectangle's width.