Qyoto
4.0.7
Qyoto is a C# language binding for Qt
|
The QTextFrameFormat class provides formatting information for frames in a QTextDocument. More...
Protected Member Functions | |
QTextFrameFormat (System.Type dummy) | |
QTextFrameFormat (QTextFormat fmt) | |
![]() | |
QTextFormat (System.Type dummy) | |
Additional Inherited Members | |
![]() | |
static bool | operator!= (QTextFormat one, QTextFormat rhs) |
More... | |
static bool | operator== (QTextFormat one, QTextFormat rhs) |
More... | |
![]() | |
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.
Enumerator | |
---|---|
FloatLeft | |
FloatRight | |
InFlow |
|
protected |
QtGui.QTextFrameFormat.QTextFrameFormat | ( | ) |
Constructs a text frame format object with the default properties.
|
protected |
QtGui.QTextFrameFormat.QTextFrameFormat | ( | QTextFrameFormat | copy | ) |
|
virtual |
Reimplemented from QtGui.QTextFormat.
Reimplemented in QtGui.QTextTableFormat.
new void QtGui.QTextFrameFormat.Dispose | ( | ) |
new void QtGui.QTextFrameFormat.SetHeight | ( | double | height | ) |
This is an overloaded function.
Sets the frame's height.
new void QtGui.QTextFrameFormat.SetWidth | ( | double | width | ) |
This is an overloaded function.
Convenience method that sets the width of the frame's border rectangle's width to the specified fixed width.
|
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.
|
get |
Returns true if the format description is valid; otherwise returns false.
|
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.