Class Css
Allows in/out operations and/or data validations with CSS files.
Inheritance
System.Object
AutoCheck.Core.Connector
Css
Implements
System.IDisposable
Inherited Members
AutoCheck.Core.Connector.CurrentOS
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: AutoCheck.Core.Connectors
Assembly: AutoCheck.dll
Syntax
public class Css : Connector, IDisposable
Constructors
| Improve this Doc View SourceCss(String, String)
Creates a new connector instance.
Declaration
public Css(string path, string file)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | The folder containing the web files. |
System.String | file | CSS file name. |
Properties
| Improve this Doc View SourceCssDoc
The CSS document content.
Declaration
public Stylesheet CssDoc { get; }
Property Value
Type | Description |
---|---|
ExCSS.Stylesheet |
Raw
The original CSS file content (unparsed).
Declaration
public string Raw { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceDispose()
Disposes the object releasing its unmanaged properties.
Declaration
public override void Dispose()
Overrides
AutoCheck.Core.Connector.Dispose()
|
Improve this Doc
View Source
PropertyApplied(HtmlDocument, String, String)
Declaration
public bool PropertyApplied(HtmlDocument htmlDoc, string property, string value = null)
Parameters
Type | Name | Description |
---|---|---|
HtmlAgilityPack.HtmlDocument | htmlDoc | |
System.String | property | |
System.String | value |
Returns
Type | Description |
---|---|
System.Boolean |
PropertyExists(String, String)
Determines if a property exists within the current CSS document.
Declaration
public bool PropertyExists(string property, string value = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | property | The CSS property name. |
System.String | value | The CSS property value. |
Returns
Type | Description |
---|---|
System.Boolean | True if the property has been found |
ValidateCss3AgainstW3C()
Validates the currently loaded CSS document against the W3C public API. Throws an exception if the document is invalid.
Declaration
public void ValidateCss3AgainstW3C()
Implements
System.IDisposable