Class TWPSetModeControl
Hierarchy
System.TObject | System.Classes.TPersistent | TWPSetModeControl
Description
Interface to the 'current' character and paragraph attributes. You can use the provided properties to modify character and paragraph attributes.@depreciated This interface is provided for compatibility to WPTools Version 4 and earlier. This property hides one of the best features of WPTools 5: all properties have a null state but its source (unit WPCtrRich.PAS) is a good example how the properties of the text can be retrieved and changed. The interface is easy to use and will so be supported in future version of WPTools, too. It will not be supported in a pure OCX or .NET version of WPTools though.
Please note that the class TWPSetModeControl only works as a interface to the text manahed by the "RTF-Engine". It cannot be used to store properties. Please use the property WPCSS to get a string with property definitions if you need to store and transfer properties.
Upgrade notes: The properties "Tabs" and "BorderProp" are not anymore defined.
The property MultSpaceBetween is not used anymore. In WPTools 5 a paragraph can have either a LineHeight defined in % or the SpaceBetween value as a positive (=minimum) or negative (=exact) twips value.
Size is now a floating point value (type: single)
Properties
Property Alignment : TParAlign
Property BKColor : Integer
Property CellCommand : string
Property CellFormat : Integer
Property CellName : string
Property CharSet : Integer
Property Color : Integer
Property Cursor : TWPRTFDataCursor
Property ExNumberStyle : TWPRTFNumberingStyle
Property FontName : string
Property FontNr : Integer
Property IndentFirst : Integer
Property IndentLeft : Integer
Property IndentRight : Integer
Property LineColor[index] : Integer
Property LineHeight : Integer
Property LineVisible[index] : Boolean
Property LineWidth[index] : Integer
Property NumberStart : Integer
Property NumberStyle : Integer
Property OutlineBreak : Boolean
Property OutlineLevel : Integer
Property OutlineMode : Boolean
Property OutlineStyle : TWPNumberStyle
Property OutlineStyles[index] : TWPRTFNumberingStyle
Property ParColor : Integer
Property ParId : Integer
Property ParKeep : Boolean
Property ParKeepNext : Boolean
Property ParProtect : Boolean
Property ParShading : Integer
Property RTFProps : TWPRTFProps
Property Size : Single
Property SpaceAfter : Integer
Property SpaceBefore : Integer
Property SpaceBetween : Integer
Property StyleName : string
Property TabCount : Integer
Property TabFill[index] : TTabFill
Property TabKind[index] : TTabKind
Property TableName : string
Property TabPosition[index] : Integer
Property UnderlineMode : Integer
Methods
Procedure AddStyle(x:WrtStyle)
Procedure AddTab(pos:Integer; Kind:TTabKind; Fill:TTabFill; ColorNr:Integer)
Procedure ADel(WPAT_Code:Byte)
Function AGet(WPAT_Code:Byte; Value:Integer) : Boolean
Function AGetDefault(WPAT_Code:Byte; Value:Integer) : Integer
Procedure ASet(WPAT_Code:Byte; Value:Integer)
Procedure Assign(Source:TPersistent)
Procedure AutoIndentFirst(defaultvalue:Integer)
Procedure ClearAttr(ParAttr:Boolean; CharAttr:Boolean)
Procedure ClearAttributes(StyleNr:Integer)
Function ColorToNr(x:TColor; add:Boolean) : Integer
Create(aOwner:TWPCustomRtfEdit)
Function CurrentTable : TParagraph
Function EndUpdate : Boolean
Function GetColorEx(WPAT_Code:Integer) : Integer
Function GetNumberStyle(nr:Integer) : TWPRTFNumberingStyle
Function GetTableLeftRight(tbLeft:Integer; tbRight:Integer) : Boolean
Procedure HidePar(Status:Boolean)
Function NrToColor(x:Integer) : TColor
Procedure SetFontCharset(fontname:string; charset:Integer)
Procedure SetFontStyle(x:TFontStyles)
Procedure SetNoWordWrapInPar(Status:Boolean)
Function SetParStyle(aName:string) : TWPRTFStyleElement
Procedure SetTableLeftRight(tbLeft:Integer; tbRight:Integer)
Used or referenced by
-Property TWPCustomRichText.CurrAttr : TWPSetModeControl |