All pages
Powered by GitBook
1 of 1

Loading...

StyleSheet

Wisej.Web.StyleSheet

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.0.0.0)

  • Component

    • Component

Adds CSS styling to controls.

Constructors

StyleSheet()

Initializes a new instance of the without a specified container.

StyleSheet(container)

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

Name
Type
Description

Properties

Styles

: Returns or sets the CSS definitions managed by the extender.

StyleSheetSource

: Returns or set the source of the CSS file containing the CSS definitions managed by the extender.

Tag

: Returns or sets the object that contains programmer-supplied data associated with the extender.

Methods

CanExtend(target)

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

Parameter
Type
Description

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

Clear()

Removes all css classes.

GetCssClass(control)

Retrieves the CSS class name associated with the specified control.

Parameter
Type
Description

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

SetCssClass(control, cssClass)

Adds the CSS class name to the specified control.

Parameter
Type
Description

Implements

Name
Description

container

IContainer

An IContainer that represents the container of the StyleSheet extender.

target

Object

The target object to add an extender property to.

control

Control

The Control for which to retrieve the CSS class name.

control

Control

The Control to add the CSS class name to.

cssClass

String

The CSS class name to add to the control.

IWisejComponent

All wisej components implement this interface.

IWisejExtenderProvider

Defines the interface for extending properties to other components in a container.

IWisejSerializable

Allows an object to serialize itself.

StyleSheet
Public Class StyleSheet
    Inherits Component
    Implements IWisejExtenderProvider, IExtenderProvider
StyleSheet
StyleSheet
String
String
Object
StyleSheet
Boolean
StyleSheet
String
public class StyleSheet : Component, IWisejExtenderProvider, IExtenderProvider