Class Directive

Object representing CSS directive

Inheritance
System.Object
Directive
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.CssParsing
Assembly: EPiServer.Framework.dll
Version: 8.11.0
Syntax
public class Directive : IDeclarationContainer, IRuleSetContainer

Constructors

Directive()

Initializes a new instance of the Directive class.

Declaration
public Directive()

Properties

Declarations

Gets declarations

Declaration
public IList<Declaration> Declarations { get; }
Property Value
Type Description
System.Collections.Generic.IList<Declaration>

Directives

Gets or sets the directives.

Declaration
public IList<Directive> Directives { get; }
Property Value
Type Description
System.Collections.Generic.IList<Directive>

The directives.

DirectiveType

Gets or sets the type of the directive.

Declaration
public DirectiveType DirectiveType { get; set; }
Property Value
Type Description
DirectiveType

The type of the directive.

Expression

Declaration
public Expression Expression { get; set; }
Property Value
Type Description
Expression

Mediums

Gets or sets the mediums.

Declaration
public IList<Medium> Mediums { get; }
Property Value
Type Description
System.Collections.Generic.IList<Medium>

The mediums.

Name

Gets or sets the name.

Declaration
public string Name { get; set; }
Property Value
Type Description
System.String

The name.

RuleSets

Gets rule sets

Declaration
public IList<RuleSet> RuleSets { get; }
Property Value
Type Description
System.Collections.Generic.IList<RuleSet>

Methods

ToString()

Returns a System.String that represents this instance.

Declaration
public override string ToString()
Returns
Type Description
System.String

A System.String that represents this instance.

Overrides
System.Object.ToString()

ToString(Int32)

Returns a System.String that represents this instance.

Declaration
public string ToString(int nesting)
Parameters
Type Name Description
System.Int32 nesting

The nesting.

Returns
Type Description
System.String

A System.String that represents this instance.