Qyoto
4.0.5
Qyoto is a C# language binding for Qt
|
The QTextListFormat class provides formatting information for lists in a QTextDocument. More...
Public Member Functions | |
QTextListFormat () | |
| |
QTextListFormat (QTextListFormat copy) | |
| |
override void | CreateProxy () |
new bool | IsValid () |
| |
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 | |
QTextListFormat (System.Type dummy) | |
QTextListFormat (QTextFormat fmt) | |
| |
Protected Member Functions inherited from QtGui.QTextFormat | |
QTextFormat (System.Type dummy) | |
Properties | |
new int | Indent [get, set] |
| |
new string | NumberPrefix [get, set] |
| |
new string | NumberSuffix [get, set] |
| |
new QTextListFormat.Style | style [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 QTextListFormat class provides formatting information for lists in a QTextDocument.
A list is composed of one or more items, represented as text blocks. The list's format specifies the appearance of items in the list. In particular, it determines the indentation and the style of each item.
The indentation of the items is an integer value that causes each item to be offset from the left margin by a certain amount. This value is read with indent() and set with setIndent().
The style used to decorate each item is set with setStyle() and can be read with the style() function. The style controls the type of bullet points and numbering scheme used for items in the list. Note that lists that use the decimal numbering scheme begin counting at 1 rather than 0.
Style properties can be set to further configure the appearance of list items; for example, the ListNumberPrefix and ListNumberSuffix properties can be used to customize the numbers used in an ordered list so that they appear as (1), (2), (3), etc.:
QTextListFormat listFormat;
listFormat.setStyle(QTextListFormat::ListDecimal);
listFormat.setNumberPrefix("(");
listFormat.setNumberSuffix(")");
cursor.insertList(listFormat);
See also QTextList.
This enum describes the symbols used to decorate list items:
|
protected |
QtGui.QTextListFormat.QTextListFormat | ( | ) |
Constructs a new list format object.
|
protected |
Constructs a new list format object.
QtGui.QTextListFormat.QTextListFormat | ( | QTextListFormat | copy | ) |
Constructs a new list format object.
|
virtual |
Reimplemented from QtGui.QTextFormat.
new void QtGui.QTextListFormat.Dispose | ( | ) |
new bool QtGui.QTextListFormat.IsValid | ( | ) |
Returns true if this list format is valid; otherwise returns false.
|
getset |
Returns the list format's indentation. The indentation is multiplied by the QTextDocument::indentWidth property to get the effective indent in pixels.
Sets the list format's indentation. The indentation is multiplied by the QTextDocument::indentWidth property to get the effective indent in pixels.
|
getset |
Returns the list format's number prefix.
This function was introduced in Qt 4.8.
Sets the list format's number prefix to the string specified by numberPrefix. This can be used with all sorted list types. It does not have any effect on unsorted list types.
The default prefix is an empty string.
This function was introduced in Qt 4.8.
|
getset |
Returns the list format's number suffix.
This function was introduced in Qt 4.8.
Sets the list format's number suffix to the string specified by numberSuffix. This can be used with all sorted list types. It does not have any effect on unsorted list types.
The default suffix is ".".
This function was introduced in Qt 4.8.
|
getset |
Returns the list format's style.
Sets the list format's style.