Qyoto
4.0.5
Qyoto is a C# language binding for Qt
|
The QTextOption class provides a description of general rich text properties. More...
Classes | |
class | Tab |
Public Types | |
enum | Flag { AddSpaceForLineAndParagraphSeparators = 4, IncludeTrailingSpaces = -2147483648, ShowLineAndParagraphSeparators = 2, ShowTabsAndSpaces = 1, SuppressColors = 8 } |
enum | TabType { CenterTab = 2, DelimiterTab = 3, LeftTab = 0, RightTab = 1 } |
More... | |
enum | WrapMode { ManualWrap = 2, NoWrap = 0, WordWrap = 1, WrapAnywhere = 3, WrapAtWordBoundaryOrAnywhere = 4 } |
More... | |
Public Member Functions | |
QTextOption () | |
| |
QTextOption (QTextOption o) | |
| |
QTextOption (Qt.AlignmentFlag alignment) | |
| |
virtual void | CreateProxy () |
new void | Dispose () |
Protected Member Functions | |
QTextOption (System.Type dummy) | |
Protected Attributes | |
SmokeInvocation | interceptor |
Properties | |
new Qt.AlignmentFlag | Alignment [get, set] |
| |
new QTextOption.Flag | Flags [get, set] |
| |
new System.Collections.Generic.List < System.Double > | TabArray [get, set] |
| |
new double | TabStop [get, set] |
| |
new System.Collections.Generic.List < QTextOption.Tab > | Tabs [get, set] |
| |
new Qt.LayoutDirection | TextDirection [get, set] |
| |
new bool | UseDesignMetrics [get, set] |
| |
new QTextOption.WrapMode | wrapMode [get, set] |
| |
virtual System.IntPtr | SmokeObject [get, set] |
The QTextOption class provides a description of general rich text properties.
QTextOption is used to encapsulate common rich text properties in a single object. It contains information about text alignment, layout direction, word wrapping, and other standard properties associated with text rendering and layout.
See also QTextEdit, QTextDocument, and QTextCursor.
This enum describes how text is wrapped in a document.
|
protected |
QtGui.QTextOption.QTextOption | ( | ) |
Constructs a text option with default properties for text. The text alignment property is set to Qt::AlignLeft. The word wrap property is set to QTextOption::WordWrap. The using of design metrics flag is set to false.
QtGui.QTextOption.QTextOption | ( | QTextOption | o | ) |
Construct a copy of the other text option.
QtGui.QTextOption.QTextOption | ( | Qt.AlignmentFlag | alignment | ) |
Constructs a text option with default properties for text. The text alignment property is set to Qt::AlignLeft. The word wrap property is set to QTextOption::WordWrap. The using of design metrics flag is set to false.
|
virtual |
new void QtGui.QTextOption.Dispose | ( | ) |
|
protected |
|
getset |
Returns the text alignment defined by the option.
Sets the option's text alignment to the specified alignment.
|
getset |
Returns the flags associated with the option.
Sets the flags associated with the option to the given flags.
|
getset |
|
getset |
Returns a list of tab positions defined for the text layout.
Sets the tab positions for the text layout to those specified by tabStops.
|
getset |
Returns a list of tab positions defined for the text layout.
This function was introduced in Qt 4.4.
Set the Tab properties to tabStops.
|
getset |
Returns the distance in device units between tab stops. Convenient function for the above method
Sets the default distance in device units between tab stops to the value specified by tabStop.
|
getset |
Returns the direction of the text layout defined by the option.
Sets the direction of the text layout defined by the option to the given direction.
|
getset |
Returns true if the layout uses design rather than device metrics; otherwise returns false.
If enable is true then the layout will use design metrics; otherwise it will use the metrics of the paint device (which is the default behavior).
|
getset |
Returns the text wrap mode defined by the option.
Sets the option's text wrap mode to the given mode.