Clear Up
SharpKit Reference

CSSStyleDeclaration Class

The

CSSStyleDeclaration
interface represents a single CSS declaration block. This interface may be used to determine the style properties currently set in a block or to set style properties explicitly within the block.
While an implementation may not recognize all CSS properties within a CSS declaration block, it is expected to provide access to all specified properties in the style sheet through the
CSSStyleDeclaration
interface. Furthermore, implementations that support a specific level of CSS should correctly handle CSS shorthand properties for that level. For a further discussion of shorthand properties, see the
CSS2Properties
interface.
This interface is also used to provide a read-only access to the computed values of an element. See also the
ViewCSS
interface. The CSS Object Model doesn't provide an access to the specified or actual values of the CSS cascade.
See also the Document Object Model (DOM) Level 2 Style Specification. @since DOM Level 2

Namespace: SharpKit.Html

Base Types

System.Object

Constructors

Name Description
CSSStyleDeclaration()

Properties

Name Description
azimuth
background
backgroundAttachment
backgroundColor
backgroundImage
backgroundPosition
backgroundRepeat
backgroundSize
border
borderBottom
borderBottomColor
borderBottomLeftRadius
borderBottomRightRadius
borderBottomStyle
borderBottomWidth
borderCollapse
borderColor
borderLeft
borderLeftColor
borderLeftStyle
borderLeftWidth
borderRadius
borderRight
borderRightColor
borderRightStyle
borderRightWidth
borderSpacing
borderStyle
borderTop
borderTopColor
borderTopLeftRadius
borderTopRightRadius
borderTopStyle
borderTopWidth
borderWidth
bottom
captionSide
clear
clip
color
content
counterIncrement
counterReset
cssFloat
cssText The parsable textual representation of the declaration block (excluding the surrounding curly braces). Setting this attribute will result in the parsing of the new value and resetting of all the properties in the declaration block including the removal or addition of properties.
cue
cueAfter
cueBefore
cursor
direction
display
elevation
emptyCells
font
fontFamily
fontSize
fontSizeAdjust
fontStretch
fontStyle
fontVariant
fontWeight
height
left
length The number of properties that have been explicitly set in this declaration block. The range of valid indices is 0 to length-1 inclusive.
letterSpacing
lineHeight
listStyle
listStyleImage
listStylePosition
listStyleType
margin
marginBottom
marginLeft
marginRight
marginTop
markerOffset
marks
maxHeight
maxWidth
minHeight
minWidth
opacity
orphans
outline
outlineColor
outlineStyle
outlineWidth
overflow
padding
paddingBottom
paddingLeft
paddingRight
paddingTop
page
pageBreakAfter
pageBreakBefore
pageBreakInside
parentRule The CSS rule that contains this declaration block or
null
if this
CSSStyleDeclaration
is not attached to a
CSSRule
.
pause
pauseAfter
pauseBefore
pitch
pitchRange
playDuring
position
quotes
richness
right
size
speak
speakHeader
speakNumeral
speakPunctuation
speechRate
stress
tableLayout
textAlign
textDecoration
textIndent
textShadow
textTransform
top
unicodeBidi
values
verticalAlign
visibility
voiceFamily
volume
whiteSpace
widows
width
wordSpacing
zIndex

Methods

Name Description
getPropertyPriority(string) Used to retrieve the priority of a CSS property (e.g. the
"important"
qualifier) if the property has been explicitly set in this declaration block.
getPropertyValue(string) Used to retrieve the value of a CSS property if it has been explicitly set within this declaration block.
removeProperty(string) Used to remove a CSS property if it has been explicitly set within this declaration block.
setProperty(string, string)
setProperty(string, string, string) Used to set a property value and priority within this declaration block.

Indexers

Name Description
Item(int)
© Copyright 2005-2011 SharpKit. All rights reserved.