VisualStyle::Style Class
Description
A list of Style Class properties and methods.
Properties
- FontVisualStyle::Font
Font definition for visual style
- FillVisualStyle::Fill
Fill definition for style
- BorderVisualStyle::Border
Border definition for style
- ShadowVisualStyle::Shadow
Shadow definition for style
- PaddingVisualStyle::Edge
Padding (around a cell) for style.
- MarginVisualStyle::Edge
Margin (inside a cell) for style.
- AlignmentVisualStyle::Alignment
Text Alignment for style.
VisualStyle::Alignment Class- VisualStyle::Image
Background image for style.
- CursorCharacter
Cursor name for style.
- page_breakCharacter
Page break for element.
- encodingCharacter
Encoding of the text content.
- format_expressionCharacter
Formatting expression for the content.
- resizingCharacter
Print time sizing (i.e. grow/shrink).
- HintsCharacter
Internal hints attribute.
Methods
- BackgroundGenerate Method
Returns the shape of an object layer=0 means all, 1=fill 2=border.
- ClearStyle Method
Clears style elements (i.e. font,fill,border,alignment).
- Combine Method
Combine feature of a base style into this style.
- CombineStyles Method
Combine two styles with options (options are t,l,b,r for top/left/bottom/right - to pick which borders to define for style2).
- CopyAttribute Method
Copy an attribute from styleOther to styleOriginal.
- CSSColor Method
Convert an alpha style color into an HTML color.
- CSSInline Method
Convert visual inline fill properties to CSS.
- DefinesMore Method
Returns true if baseStyle defines properties not in current style.
- DynamicEvaluate Method
If any dynamic fields exist for the style, they are evaluated - optional evalContext same as argument for eval() function.
- DynamicStyleTemplate Method
Create a template or expression for style that includes dynamic elements.
- DynamicStyleTemplateGenerate Method
Generate an expression for a style with dynamic properties.
- EnumerateFields Method
Enumerate fields that are contained.
- FromCSS Method
Populate a visual style from a CSS definition (uses HTML attributes & format wherever possible).
- FromString Method
Convert visual style string to an visual style definition.
- GenerateCssStyle Method
Generate the CSS style for the font, options - pick which elements to convert.
- GetField Method
Get field by name (allows non-standard fields).
- GetFillStyle Method
Returns the fill style.
- GetFontColor Method
Returns the font color.
- GetFontDescriptor Method
Returns the font descriptor (i.e. ascii font name).
- HasAlignment Method
Returns true if style has alignment defined.
- HasBackground Method
Returns true if style has a Fill or border Which is not empty.
- HasField Method
Return true if there is a field that matches the pattern (smatch).
- HasFill Method
Returns true if style has a fill style.
- HasFont Method
Returns true if style has a font definition.
- HasFontColor Method
Returns true if style has a font color.
- HasFontModifier Method
Returns true if style has a font modifier (size,bold,italic,underline or strikeout).
- HasImage Method
Returns true if style has a image style.
- HasLine Method
Returns true if style has a line style.
- HasRoundedCorners Method
Returns true if style has rounded or beveled corners.
- IsDefault Method
Default style - returned for 'undefined' styles.
- IsShrinkable Method
resizable is set to shrink - property for print-time resize of elements.
- QuickdrawGenerate Method
Given a style, generate quickdraw for font, color, brush and line style (the caller must generate the appropriate quickdraw for the border shape).
- SetAndConvertBorders Method
Set borders (optimizes for styles on defined borders being the same).
- SetBorders Method
Set borders (optimizes for styles on defined borders being the same).
- SetDeclaration Method
Set field by name (allows non-standard fields).
- ToCSS Method
Output the visual style string to a css style sheet.
- ToRestStyle Method
Emit style - to rest output.
- ToString Method
Output the visual style string that represents the visual style definition.