Clear Up
SharpKit Reference

HtmlStyleElement Class

Represents a STYLE html node

Namespace: SharpKit.Html4

Constructors

Name Description
HtmlStyleElement()

Methods

Name Description
addRule(JsString, JsString, JsNumber) Creates a new rule for a style sheet.
addRule(JsString, JsString) Creates a new rule for a style sheet.
deleteRule(UInt64) Used to delete a rule from the style sheet.
insertRule(JsString, JsNumber) Inserts a new style rule into the current style sheet.
removeRule(JsNumber) Deletes an existing style rule for the styleSheet object, and adjusts the index of the rules collection accordingly.
removeRule() Deletes the first style rule for the styleSheet object, and adjusts the index of the rules collection accordingly.

Properties

Name Description
cssRules Retrieves a collection of rules defined in a style sheet.
cssText Sets or retrieves the persisted representation of the style rule.
disabled Sets or retrieves a value that indicates whether the user can interact with the object.
href The URL of the linked style sheet.
imports Retrieves a collection of all the imported style sheets defined for the respective styleSheet object.
media Sets or retrieves the media type.
ownerNode Returns the node that associates this style sheet with the document. Usually a <link> or a <style> tag.
owningElement Retrieves the next object in the HTML hierarchy.
pages Retrieves a collection of page objects, which represent @page rules in a styleSheet.
parentStyleSheet Retrieves the style sheet that imported the current style sheets.
readOnly Retrieves whether the rule or style sheet is defined on the page or is imported.
rules Retrieves a collection of rules defined in a style sheet.
title Sets or retrieves the title of the style sheet.
type Sets or retrieves the MIME type of the object. e.g. 'text/css'

Fields

Name Description
onerror Fires when an error occurs during object loading.
onload Fires immediately after the browser loads the object.
© Copyright 2005-2011 SharpKit. All rights reserved.