This object represents a line in a paragraph, and stores offsets from the start of the paragraph representing the start and end positions of the line.
See also
wx.richtext.RichTextBuffer, wx.richtext.RichTextCtrl
Copies from obj. |
|
Returns the absolute object position. |
|
Returns the absolute range. |
|
Returns the stored descent. |
|
Returns the parent paragraph. |
|
Returns the object position relative to the parent. |
|
Returns the range. |
|
Returns the rectangle enclosing the line. |
|
Returns the line size as calculated by Layout. |
|
Initialises the object. |
|
Sets the stored descent. |
|
Sets the object position relative to the parent. |
|
Sets the range associated with this line. |
|
Sets the line size as calculated by Layout. |
See |
|
See |
|
See |
|
See |
|
See |
|
wx.richtext.
RichTextLine
(object)¶Possible constructors:
RichTextLine(parent)
RichTextLine(obj)
This object represents a line in a paragraph, and stores offsets from the start of the paragraph representing the start and end positions of the line.
__init__
(self, *args, **kw)¶__init__ (self, parent)
parent (wx.richtext.RichTextParagraph) –
__init__ (self, obj)
obj (wx.richtext.RichTextLine) –
Clone
(self)¶Copy
(self, obj)¶Copies from obj.
obj (wx.richtext.RichTextLine) –
GetAbsolutePosition
(self)¶Returns the absolute object position.
Point
GetAbsoluteRange
(self)¶Returns the absolute range.
GetDescent
(self)¶Returns the stored descent.
int
GetParent
(self)¶Returns the parent paragraph.
GetPosition
(self)¶Returns the object position relative to the parent.
Point
GetRange
(self)¶Returns the range.
Init
(self, parent)¶Initialises the object.
parent (wx.richtext.RichTextParagraph) –
SetDescent
(self, descent)¶Sets the stored descent.
descent (int) –
SetPosition
(self, pos)¶Sets the object position relative to the parent.
pos (wx.Point) –
SetRange
(self, *args, **kw)¶Sets the range associated with this line.
SetRange (self, range)
range (wx.richtext.RichTextRange) –
SetRange (self, from_, to_)
from_ (long) –
to_ (long) –
AbsolutePosition
¶AbsoluteRange
¶See GetAbsoluteRange
Descent
¶See GetDescent
and SetDescent
Position
¶See GetPosition
and SetPosition