Class Style
- Namespace
- PolarStudio
- Assembly
- PolarStudio.dll
This class contains css style settings for a control in Polar Studio. These style settings can be manipulated. Also, this object can create the style expression as to add to a HTML control.
public class Style
- Inheritance
-
Style
- Inherited Members
- Extension Methods
Constructors
Style()
Constructor
public Style()
Properties
this[object]
This default method returns the requested style on index (either int or string (name)). If requested by-name, then the property is created if not existing.
public StyleProperty this[object pIndex] { get; }
Parameters
pIndex
objectAn int or the name of the style to get.
Property Value
- StyleProperty
A style or Nothing (if requested by index (int) and out of bounds)
Properties
This method returns all properties of this style object
public StyleProperties Properties { get; }
Property Value
Methods
ClearOverruledValues()
This method clears all temporary/overruled values.
public void ClearOverruledValues()
SetStyle(string)
This method is used to set a style-expression for both list view and form view.
public void SetStyle(string pStyleExpression)
Parameters
pStyleExpression
stringThe expression containing the style values, like: border-width: 1px; border-style: solid; border-color: red;
SetStyleFormView(string)
This method is used to set a style-expression for form view.
public void SetStyleFormView(string pStyleExpression)
Parameters
pStyleExpression
stringThe expression containing the style values, like: border-width: 1px; border-style: solid; border-color: red;
SetStyleListView(string)
This method is used to set a style-expression list view.
public void SetStyleListView(string pStyleExpression)
Parameters
pStyleExpression
stringThe expression containing the style values, like: border-width: 1px; border-style: solid; border-color: red;
StyleExpression(bool, object)
This method returns the expression as to use in HTML.
public string StyleExpression(bool pReturnBareStyle = false, object pScriptContextObject = null)
Parameters
pReturnBareStyle
boolIf this property is passed as True, only the core of the style, like 'color: green; border-style: none;' is returned. Else, the full expression (including style="...") is returned.
pScriptContextObject
objectThis property can be set to a context to use to run included scripts.
Returns
- string
A string with the (bare or full) style expression.