📄 richtextattr.tex
字号:
\constfunc{long}{GetLeftSubIndent}{\void}Returns the left sub-indent in tenths of a millimetre.\membersection{wxRichTextAttr::GetLineSpacing}\label{wxrichtextattrgetlinespacing}\constfunc{int}{GetLineSpacing}{\void}Returns the line spacing value, one of wxTEXT\_ATTR\_LINE\_SPACING\_NORMAL,wxTEXT\_ATTR\_LINE\_SPACING\_HALF, and wxTEXT\_ATTR\_LINE\_SPACING\_TWICE.\membersection{wxRichTextAttr::GetListStyleName}\label{wxrichtextattrgetliststylename}\constfunc{const wxString\&}{GetListStyleName}{\void}Returns the name of the list style.\membersection{wxRichTextAttr::GetOutlineLevel}\label{wxrichtextattrgetoutlinelevel}\constfunc{bool}{GetOutlineLevel}{\void}Returns the outline level.\membersection{wxRichTextAttr::GetParagraphSpacingAfter}\label{wxrichtextattrgetparagraphspacingafter}\constfunc{int}{GetParagraphSpacingAfter}{\void}Returns the space in tenths of a millimeter after the paragraph.\membersection{wxRichTextAttr::GetParagraphSpacingBefore}\label{wxrichtextattrgetparagraphspacingbefore}\constfunc{int}{GetParagraphSpacingBefore}{\void}Returns the space in tenths of a millimeter before the paragraph.\membersection{wxRichTextAttr::GetParagraphStyleName}\label{wxrichtextattrgetparagraphstylename}\constfunc{const wxString\&}{GetParagraphStyleName}{\void}Returns the name of the paragraph style.\membersection{wxRichTextAttr::GetRightIndent}\label{wxrichtextattrgetrightindent}\constfunc{long}{GetRightIndent}{\void}Returns the right indent in tenths of a millimeter.\membersection{wxRichTextAttr::GetTabs}\label{wxrichtextattrgettabs}\constfunc{const wxArrayInt\&}{GetTabs}{\void}Returns an array of tab stops, each expressed in tenths of a millimeter. Each stopis measured from the left margin and therefore each value must be larger than the last.\membersection{wxRichTextAttr::GetTextColour}\label{wxrichtextattrgettextcolour}\constfunc{const wxColour\&}{GetTextColour}{\void}Returns the text foreground colour.\membersection{wxRichTextAttr::GetTextEffectFlags}\label{wxrichtextattrgettexteffectflags}\constfunc{int}{GetTextEffectFlags}{\void}Returns the text effect bits of interest. See \helpref{wxRichTextAttr::SetFlags}{wxrichtextattrsetflags} for further information.\membersection{wxRichTextAttr::GetTextEffects}\label{wxrichtextattrgettexteffects}\constfunc{int}{GetTextEffects}{\void}Returns the text effects, a bit list of styles. See \helpref{wxRichTextAttr::SetTextEffects}{wxrichtextattrsettexteffects} fordetails.\membersection{wxRichTextAttr::GetURL}\label{wxrichtextattrgeturl}\constfunc{const wxString\&}{GetURL}{\void}Returns the URL for the content. Content with wxTEXT\_ATTR\_URL stylecauses wxRichTextCtrl to show a hand cursor over it, and wxRichTextCtrl generatesa wxTextUrlEvent when the content is clicked.\membersection{wxRichTextAttr::HasAlignment}\label{wxrichtextattrhasalignment}\constfunc{bool}{HasAlignment}{\void}Returns \true if the attribute object specifies alignment.\membersection{wxRichTextAttr::HasBackgroundColour}\label{wxrichtextattrhasbackgroundcolour}\constfunc{bool}{HasBackgroundColour}{\void}Returns \true if the attribute object specifies a background colour.\membersection{wxRichTextAttr::HasBulletName}\label{wxrichtextattrhasbulletname}\constfunc{bool}{HasBulletName}{\void}Returns \true if the attribute object specifies a standard bullet name.\membersection{wxRichTextAttr::HasBulletNumber}\label{wxrichtextattrhasbulletnumber}\constfunc{bool}{HasBulletNumber}{\void}Returns \true if the attribute object specifies a bullet number.\membersection{wxRichTextAttr::HasBulletStyle}\label{wxrichtextattrhasbulletstyle}\constfunc{bool}{HasBulletStyle}{\void}Returns \true if the attribute object specifies a bullet style.\membersection{wxRichTextAttr::HasBulletText}\label{wxrichtextattrhasbullettext}\constfunc{bool}{HasBulletText}{\void}Returns \true if the attribute object specifies bullet text (usually specifying a symbol).\membersection{wxRichTextAttr::HasCharacterStyleName}\label{wxrichtextattrhascharacterstylename}\constfunc{bool}{HasCharacterStyleName}{\void}Returns \true if the attribute object specifies a character style name.\membersection{wxRichTextAttr::HasFontFaceName}\label{wxrichtextattrhasfontfacename}\constfunc{bool}{HasFontFaceName}{\void}Returns \true if the attribute object specifies a font face name.\membersection{wxRichTextAttr::HasFlag}\label{wxrichtextattrhasflag}\constfunc{bool}{HasFlag}{\param{long }{flag}}Returns \true if the {\it flag} is present in the attribute object's flag bitlist.\membersection{wxRichTextAttr::HasFont}\label{wxrichtextattrhasfont}\constfunc{bool}{HasFont}{\void}Returns \true if the attribute object specifies any font attributes.\membersection{wxRichTextAttr::HasFontItalic}\label{wxrichtextattrhasfontitalic}\constfunc{bool}{HasFontItalic}{\void}Returns \true if the attribute object specifies italic style.\membersection{wxRichTextAttr::HasLeftIndent}\label{wxrichtextattrhasleftindent}\constfunc{bool}{HasLeftIndent}{\void}Returns \true if the attribute object specifies a left indent.\membersection{wxRichTextAttr::HasLineSpacing}\label{wxrichtextattrhaslinespacing}\constfunc{bool}{HasLineSpacing}{\void}Returns \true if the attribute object specifies line spacing.\membersection{wxRichTextAttr::HasListStyleName}\label{wxrichtextattrhasliststylename}\constfunc{bool}{HasListStyleName}{\void}Returns \true if the attribute object specifies a list style name.\membersection{wxRichTextAttr::HasOutlineLevel}\label{wxrichtextattrhasoutlinelevel}\constfunc{bool}{HasOutlineLevel}{\void}Returns \true if the attribute object specifies an outline level.\membersection{wxRichTextAttr::HasPageBreak}\label{wxrichtextattrhaspagebreak}\constfunc{bool}{HasPageBreak}{\void}Returns \true if the attribute object specifies a page break before this paragraph.\membersection{wxRichTextAttr::HasParagraphSpacingAfter}\label{wxrichtextattrhasparagraphspacingafter}\constfunc{bool}{HasParagraphSpacingAfter}{\void}Returns \true if the attribute object specifies spacing after a paragraph.\membersection{wxRichTextAttr::HasParagraphSpacingBefore}\label{wxrichtextattrhasparagraphspacingbefore}\constfunc{bool}{HasParagraphSpacingBefore}{\void}Returns \true if the attribute object specifies spacing before a paragraph.\membersection{wxRichTextAttr::HasParagraphStyleName}\label{wxrichtextattrhasparagraphstylename}\constfunc{bool}{HasParagraphStyleName}{\void}Returns \true if the attribute object specifies a paragraph style name.\membersection{wxRichTextAttr::HasRightIndent}\label{wxrichtextattrhasrightindent}\constfunc{bool}{HasRightIndent}{\void}Returns \true if the attribute object specifies a right indent.\membersection{wxRichTextAttr::HasFontSize}\label{wxrichtextattrhasfontsize}\constfunc{bool}{HasFontSize}{\void}Returns \true if the attribute object specifies a font point size.\membersection{wxRichTextAttr::HasTabs}\label{wxrichtextattrhastabs}\constfunc{bool}{HasTabs}{\void}Returns \true if the attribute object specifies tab stops.\membersection{wxRichTextAttr::HasTextColour}\label{wxrichtextattrhastextcolour}\constfunc{bool}{HasTextColour}{\void}Returns \true if the attribute object specifies a text foreground colour.\membersection{wxRichTextAttr::HasTextEffects}\label{wxrichtextattrhastexteffects}\constfunc{bool}{HasTextEffects}{\void}Returns \true if the attribute object specifies text effects.\membersection{wxRichTextAttr::HasFontUnderlined}\label{wxrichtextattrhasfontunderlined}\constfunc{bool}{HasFontUnderlined}{\void}Returns \true if the attribute object specifies either underlining or no underlining.\membersection{wxRichTextAttr::HasURL}\label{wxrichtextattrhasurl}\constfunc{bool}{HasURL}{\void}Returns \true if the attribute object specifies a URL.\membersection{wxRichTextAttr::HasFontWeight}\label{wxrichtextattrhasfontweight}\constfunc{bool}{HasFontWeight}{\void}Returns \true if the attribute object specifies font weight (bold, light or normal).\membersection{wxRichTextAttr::IsCharacterStyle}\label{wxrichtextattrischaracterstyle}\constfunc{bool}{IsCharacterStyle}{\void}Returns \true if the object represents a character style, that is,the flags specify a font or a text background or foreground colour.\membersection{wxRichTextAttr::IsDefault}\label{wxrichtextattrisdefault}\constfunc{bool}{IsDefault}{\void}Returns \false if we have any attributes set, \true otherwise.\membersection{wxRichTextAttr::IsParagraphStyle}\label{wxrichtextattrisparagraphstyle}\constfunc{bool}{IsParagraphStyle}{\void}Returns \true if the object represents a paragraph style, that is,the flags specify alignment, indentation, tabs, paragraph spacing, orbullet style.\membersection{wxRichTextAttr::SetAlignment}\label{wxrichtextattrsetalignment}\func{void}{SetAlignment}{\param{wxTextAttrAlignment }{alignment}}Sets the paragraph alignment. These are the possible values for {\it alignment}:{\small\begin{verbatim}enum wxTextAttrAlignment{ wxTEXT_ALIGNMENT_DEFAULT, wxTEXT_ALIGNMENT_LEFT, wxTEXT_ALIGNMENT_CENTRE, wxTEXT_ALIGNMENT_CENTER = wxTEXT_ALIGNMENT_CENTRE, wxTEXT_ALIGNMENT_RIGHT, wxTEXT_ALIGNMENT_JUSTIFIED};\end{verbatim}}Of these, wxTEXT\_ALIGNMENT\_JUSTIFIED is unimplemented. In future justification may be supportedwhen printing or previewing, only.\membersection{wxRichTextAttr::SetBackgroundColour}\label{wxrichtextattrsetbackgroundcolour}\func{void}{SetBackgroundColour}{\param{const wxColour\& }{colBack}}Sets the background colour.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -