Skip to main content
Version: 4.1

StyleSheet

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

Adds CSS styling to controls.

public class StyleSheet : Component, IWisejExtenderProvider, IExtenderProvider

Constructors

Instance member StyleSheet()

Initializes a new instance of the StyleSheet without a specified container.

Instance member StyleSheet(container)

Initializes a new instance of the StyleSheet class with a specified container.

NameTypeDescription
containerIContainerAn IContainer that represents the container of the StyleSheet extender.

Properties

Instance member Styles

String: Returns or sets the CSS definitions managed by the extender. (Default: "")

Instance member StyleSheetSource

String: Returns or set the source of the CSS file containing the CSS definitions managed by the extender. (Default: "")

Instance member Tag

Object: Returns or sets the object that contains programmer-supplied data associated with the StyleSheet extender. (Default: null)

Methods

Instance member CanExtend(target)

Returns true if the StyleSheet extender can offer an extender property to the specified target component.

ParameterTypeDescription
targetObjectThe target object to add an extender property to.

Returns: Boolean. true if the StyleSheet class can offer one or more extender properties; otherwise, false.

Instance member Clear()

Removes all css classes.

Protected member Dispose(disposing)

ParameterTypeDescription
disposingBoolean

Instance member GetCssClass(control)

Retrieves the CSS class name associated with the specified control.

ParameterTypeDescription
controlControlThe Control for which to retrieve the CSS class name.

Returns: String. The CSS class name added to the specified control.

Protected member OnWebRender(config)

Renders the client component.

ParameterTypeDescription
configObjectDynamic configuration object.

Instance member SetCssClass(control, cssClass)

Adds the CSS class name to the specified control.

ParameterTypeDescription
controlControlThe Control to add the CSS class name to.
cssClassStringThe CSS class name to add to the control.

Implements

NameDescription
IUserDataProvides access to the UserData and Tag properties associated to the component implementing this interface.
IWisejComponentAll wisej components implement this interface.
IWisejExtenderProviderDefines the interface for extending properties to other components in a container.
IWisejSerializableAllows an object to serialize itself.