Свойство | Type | Description | |
---|---|---|---|
ApplyCharacterStyleInfo | void | ||
ApplyParagraphStyleInfo | void | ||
AssembledStyles | System | ||
AssembledStyles | System | ||
AssembledStyles | System | ||
CanonicalInstance | |||
ResetNonInherited | |||
SetFaceName | void | ||
SetFaceName | void | ||
SetNonInheritedDefaults | void |
Méthode | Description | |
---|---|---|
ApplyTextProps ( ITsTextProps props ) : |
Compute the assembled styles that results from applying the properties specified in the text props to this. We might start with a root assembled styles that says to use a 10-point font, then apply a paragraph style which says to use a 12-point font, except for French use 14-point. Then in another text props we may tell it the writing system is French, and must get 14-point as the result. Or, in a single TsTextProps, we may tell it the WS is French and to apply a character style which says to use 16-point, except for French 18-point; the result needs to be 18-point. It's also theoretically possible that the same text props again says directly to use 20-point; that should win over all the others. We achieve most of this by simply looking for the ws, then the named style, then everything else (and when we process a style, if we already know a ws we include the overrides for that ws). However, when we process the paragraph style, we don't know what ws a run in that paragraph will have.
|
|
AssembledStyles ( ) : System |
Default constructor sets initial state
|
|
AssembledStyles ( IStylesheet stylesheet ) : System |
Default constructor sets initial state
|
|
BackColorSetter ( Color backColor ) : PropSetter |
Return an object which, when passed to WithProperties, will return an assembled styles with the specified foreground color.
|
|
BaselineOffsetSetter ( int height ) : PropSetter |
Return an object which, when passed to WithProperties, will return an assembled styles with the specified baseline offset.
|
|
BorderColorSetter ( Color backColor ) : PropSetter |
Return an object which, when passed to WithProperties, will return an assembled styles with the specified foreground color.
|
|
BordersSetter ( |
Return an object which, when passed to WithProperties, will return an assembled styles with the specified borders. Enhance JohnT: may want a mechanism to allow only certain borders to be modified.
|
|
Equals ( |
||
Equals ( object obj ) : bool | ||
FaceNameFromChrp ( LgCharRenderProps chrp ) : string | ||
FaceNameSetter ( string name ) : PropSetter |
Return an object which, when passed to WithProperties, will return an assembled styles with the specified font face.
|
|
FirstLineIndentSetter ( int indent ) : PropSetter |
Return an object which, when passed to WithProperties, will return an assembled styles with the specified first line indent.
|
|
FontItalicSetter ( FwTextToggleVal ttv ) : PropSetter |
Return an object which, when passed to WithProperties, will return an assembled styles with the specified (or possibly inverted) italic setting.
|
|
FontSizeSetter ( int height ) : PropSetter |
Return an object which, when passed to WithProperties, will return an assembled styles with the specified font size.
|
|
FontWeightSetter ( int weight ) : PropSetter |
Return an object which, when passed to WithProperties, will return an assembled styles with the specified font weight.
|
|
ForeColorSetter ( Color foreColor ) : PropSetter |
Return an object which, when passed to WithProperties, will return an assembled styles with the specified foreground color.
|
|
GetHashCode ( ) : int | ||
LineHeightSetter ( int height ) : PropSetter |
Return an object which, when passed to WithProperties, will return an assembled styles with the specified line height.
|
|
MarginsSetter ( |
Return an object which, when passed to WithProperties, will return an assembled styles with the specified margins (space in the color of the containing box, outside the border, allowed to overlap with adjacent boxes top and bottom). Enhance JohnT: may want a mechanism to allow only certain margins to be modified.
|
|
PadsSetter ( |
Return an object which, when passed to WithProperties, will return an assembled styles with the specified pads (space in the box's own background color, if any, inside the border). Enhance JohnT: may want a mechanism to allow only certain margins to be modified.
|
|
RtlSetter ( bool rtl ) : PropSetter |
Return an object which, when passed to WithProperties, will return an assembled styles with the specified RTL value.
|
|
StyleSetter ( string name ) : PropSetter |
Return an object which, when passed to WithProperties, will return an assembled styles with the specified style.
|
|
UnderlineColorSetter ( Color underlineColor ) : PropSetter |
Return an object which, when passed to WithProperties, will return an assembled styles with the specified underline color.
|
|
UnderlineSetter ( FwUnderlineType unt ) : PropSetter |
Return an object which, when passed to WithProperties, will return an assembled styles with the specified underline type.
|
|
WithBackColor ( Color backColor ) : |
||
WithBaselineOffset ( int mp ) : |
||
WithBorderColor ( Color borderColor ) : |
||
WithBorders ( |
Return a new styles (or existing canonical one) like the current one but with the specified margins.
|
|
WithFaceName ( string faceName ) : |
||
WithFirstLineIndent ( int mp ) : |
||
WithFontBold ( FwTextToggleVal ttv ) : |
||
WithFontItalic ( FwTextToggleVal ttv ) : |
||
WithFontSize ( int mp ) : |
||
WithFontWeight ( int weight ) : |
||
WithForeColor ( Color foreColor ) : |
||
WithLineHeight ( int mp ) : AssembledStyles | ||
WithMargins ( Thickness margins ) : AssembledStyles |
Return a new styles (or existing canonical one) like the current one but with the specified margins.
|
|
WithNamedStyle ( string styleName ) : AssembledStyles | ||
WithPads ( Thickness pads ) : AssembledStyles |
Return a new styles (or existing canonical one) like the current one but with the specified pads.
|
|
WithParaAlignment ( FwTextAlign alignment ) : AssembledStyles | ||
WithProperties ( PropSetter setter ) : AssembledStyles |
Return an AssembledStyles that has the properties of the recipient, modified as specified by the given setter (and any that have been appended to it).
|
|
WithRightToLeft ( bool rtl ) : AssembledStyles | ||
WithUnderline ( FwUnderlineType underlineType ) : AssembledStyles | ||
WithUnderlineColor ( Color clrUnder ) : AssembledStyles | ||
WithWs ( int ws ) : AssembledStyles |
Méthode | Description | |
---|---|---|
ApplyCharacterStyleInfo ( ICharacterStyleInfo fontInfo ) : void | ||
ApplyParagraphStyleInfo ( IParaStyleInfo paraInfo ) : void | ||
AssembledStyles ( |
Intended for use only by AssembledStylesCache to make derived styles.
|
|
AssembledStyles ( |
||
AssembledStyles ( |
Intended for use only by AssembledStylesCache to make derived styles. If inheritedOnly is true, only those properties are copied which should be inherited by nested boxes.
|
|
CanonicalInstance ( |
||
ResetNonInherited ( ) : |
Return an assembled styles with inherited properties the same as this, but non-inherited ones reset to defaults.
|
|
SetFaceName ( LgCharRenderProps &chrp, string fontName ) : void | ||
SetFaceName ( string fontName ) : void | ||
SetNonInheritedDefaults ( ) : void |
public ApplyTextProps ( ITsTextProps props ) : |
||
props | ITsTextProps | |
Résultat |
public AssembledStyles ( IStylesheet stylesheet ) : System | ||
stylesheet | IStylesheet | |
Résultat | System |
public static BackColorSetter ( Color backColor ) : PropSetter | ||
backColor | Color | |
Résultat | PropSetter |
public static BaselineOffsetSetter ( int height ) : PropSetter | ||
height | int | |
Résultat | PropSetter |
public static BorderColorSetter ( Color backColor ) : PropSetter | ||
backColor | Color | |
Résultat | PropSetter |
public static BordersSetter ( |
||
margins | ||
Résultat | PropSetter |
public Equals ( |
||
other | ||
Résultat | bool |
public static FaceNameFromChrp ( LgCharRenderProps chrp ) : string | ||
chrp | LgCharRenderProps | |
Résultat | string |
public static FaceNameSetter ( string name ) : PropSetter | ||
name | string | |
Résultat | PropSetter |
public static FirstLineIndentSetter ( int indent ) : PropSetter | ||
indent | int | |
Résultat | PropSetter |
public static FontItalicSetter ( FwTextToggleVal ttv ) : PropSetter | ||
ttv | FwTextToggleVal | |
Résultat | PropSetter |
public static FontSizeSetter ( int height ) : PropSetter | ||
height | int | |
Résultat | PropSetter |
public static FontWeightSetter ( int weight ) : PropSetter | ||
weight | int | |
Résultat | PropSetter |
public static ForeColorSetter ( Color foreColor ) : PropSetter | ||
foreColor | Color | |
Résultat | PropSetter |
public static LineHeightSetter ( int height ) : PropSetter | ||
height | int | |
Résultat | PropSetter |
public static MarginsSetter ( |
||
margins | ||
Résultat | PropSetter |
public static PadsSetter ( |
||
margins | ||
Résultat | PropSetter |
public static RtlSetter ( bool rtl ) : PropSetter | ||
rtl | bool | |
Résultat | PropSetter |
public static StyleSetter ( string name ) : PropSetter | ||
name | string | |
Résultat | PropSetter |
public static UnderlineColorSetter ( Color underlineColor ) : PropSetter | ||
underlineColor | Color | |
Résultat | PropSetter |
public static UnderlineSetter ( FwUnderlineType unt ) : PropSetter | ||
unt | FwUnderlineType | |
Résultat | PropSetter |
public WithBackColor ( Color backColor ) : |
||
backColor | Color | |
Résultat |
public WithBaselineOffset ( int mp ) : |
||
mp | int | |
Résultat |
public WithBorderColor ( Color borderColor ) : |
||
borderColor | Color | |
Résultat |
public WithBorders ( |
||
borders | ||
Résultat |
public WithFaceName ( string faceName ) : |
||
faceName | string | |
Résultat |
public WithFirstLineIndent ( int mp ) : |
||
mp | int | |
Résultat |
public WithFontBold ( FwTextToggleVal ttv ) : |
||
ttv | FwTextToggleVal | |
Résultat |
public WithFontItalic ( FwTextToggleVal ttv ) : |
||
ttv | FwTextToggleVal | |
Résultat |
public WithFontSize ( int mp ) : |
||
mp | int | |
Résultat |
public WithFontWeight ( int weight ) : |
||
weight | int | |
Résultat |
public WithForeColor ( Color foreColor ) : |
||
foreColor | Color | |
Résultat |
public WithLineHeight ( int mp ) : AssembledStyles | ||
mp | int | |
Résultat | AssembledStyles |
public WithMargins ( Thickness margins ) : AssembledStyles | ||
margins | Thickness | |
Résultat | AssembledStyles |
public WithNamedStyle ( string styleName ) : AssembledStyles | ||
styleName | string | |
Résultat | AssembledStyles |
public WithPads ( Thickness pads ) : AssembledStyles | ||
pads | Thickness | |
Résultat | AssembledStyles |
public WithParaAlignment ( FwTextAlign alignment ) : AssembledStyles | ||
alignment | FwTextAlign | |
Résultat | AssembledStyles |
public WithProperties ( PropSetter setter ) : AssembledStyles | ||
setter | PropSetter | |
Résultat | AssembledStyles |
public WithRightToLeft ( bool rtl ) : AssembledStyles | ||
rtl | bool | |
Résultat | AssembledStyles |
public WithUnderline ( FwUnderlineType underlineType ) : AssembledStyles | ||
underlineType | FwUnderlineType | |
Résultat | AssembledStyles |
public WithUnderlineColor ( Color clrUnder ) : AssembledStyles | ||
clrUnder | Color | |
Résultat | AssembledStyles |