ICSSStyleDeclaration Interface
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.

Namespace: Aspose.Html.Dom.Css
Assembly: Aspose.HTML (in Aspose.HTML.dll) Version: 21.1
Syntax
public interface ICSSStyleDeclaration : IEnumerable<string>, 
	IEnumerable, ICSS2Properties

The ICSSStyleDeclaration type exposes the following members.

Properties
  NameDescription
Public propertyAzimuth
See the azimuth property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyBackground
See the background property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyBackgroundAttachment
See the background-attachment property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyBackgroundColor
See the background-color property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyBackgroundImage
See the background-image property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyBackgroundPosition
See the background-position property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyBackgroundRepeat
See the background-repeat property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyBorder
See the border property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyBorderBottom
See the border-bottom property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyBorderBottomColor
See the border-bottom-color property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyBorderBottomStyle
See the border-bottom-style property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyBorderBottomWidth
See the border-bottom-width property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyBorderCollapse
See the border-collapse property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyBorderColor
See the border-color property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyBorderLeft
See the border-left property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyBorderLeftColor
See the border-left-color property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyBorderLeftStyle
See the border-left-style property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyBorderLeftWidth
See the border-left-width property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyBorderRight
See the border-right property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyBorderRightColor
See the border-right-color property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyBorderRightStyle
See the border-right-style property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyBorderRightWidth
See the border-right-width property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyBorderSpacing
See the border-spacing property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyBorderStyle
See the border-style property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyBorderTop
See the border-top property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyBorderTopColor
See the border-top-color property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyBorderTopStyle
See the border-top-style property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyBorderTopWidth
See the border-top-width property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyBorderWidth
See the border-width property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyBottom
See the bottom property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyCaptionSide
See the caption-side property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyClear
See the clear property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyClip
See the clip property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyColor
See the color property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyContent
See the content property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyCounterIncrement
See the counter-increment property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyCounterReset
See the counter-reset property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyCSSText
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.
Public propertyCue
See the cue property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyCueAfter
See the cue-after property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyCueBefore
See the cue-before property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyCursor
See the cursor property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyDirection
See the direction property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyDisplay
See the display property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyElevation
See the elevation property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyEmptyCells
See the empty-cells property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyFloat
See the float property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyFont
See the font property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyFontFamily
See the font-family property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyFontSize
See the font-size property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyFontSizeAdjust
See the font-size-adjust property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyFontStretch
See the font-stretch property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyFontStyle
See the font-style property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyFontVariant
See the font-variant property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyFontWeight
See the font-weight property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyHeight
See the height property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyItem
Used to retrieve the properties that have been explicitly set in this declaration block. The order of the properties retrieved using this method does not have to be the order in which they were set. This method can be used to iterate over all properties in this declaration block.
Public propertyLeft
See the left property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyLength
The number of properties that have been explicitly set in this declaration block. The range of valid indices is 0 to length-1 inclusive.
Public propertyLetterSpacing
See the letter-spacing property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyLineHeight
See the line-height property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyListStyle
See the list-style property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyListStyleImage
See the list-style-image property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyListStylePosition
See the list-style-position property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyListStyleType
See the list-style-type property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyMargin
See the margin property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyMarginBottom
See the margin-bottom property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyMarginLeft
See the margin-left property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyMarginRight
See the margin-right property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyMarginTop
See the margin-top property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyMarkerOffset
See the marker-offset property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyMarks
See the marks property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyMaxHeight
See the max-height property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyMaxWidth
See the max-width property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyMinHeight
See the min-height property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyMinWidth
See the min-width property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyOrphans
See the orphans property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyOutline
See the outline property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyOutlineColor
See the outline-color property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyOutlineStyle
See the outline-style property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyOutlineWidth
See the outline-width property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyOverflow
See the overflow property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyPadding
See the padding property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyPaddingBottom
See the padding-bottom property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyPaddingLeft
See the padding-left property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyPaddingRight
See the padding-right property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyPaddingTop
See the padding-top property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyPage
See the page property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyPageBreakAfter
See the page-break-after property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyPageBreakBefore
See the page-break-before property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyPageBreakInside
See the page-break-inside property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyParentRule
The CSS rule that contains this declaration block or null if this CSSStyleDeclaration is not attached to a CSSRule.
Public propertyPause
See the pause property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyPauseAfter
See the pause-after property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyPauseBefore
See the pause-before property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyPitch
See the pitch property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyPitchRange
See the pitch-range property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyPlayDuring
See the play-during property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyPosition
See the position property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyQuotes
See the quotes property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyRichness
See the richness property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyRight
See the right property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertySize
See the size property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertySpeak
See the speak property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertySpeakHeader
See the speak-header property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertySpeakNumeral
See the speak-numeral property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertySpeakPunctuation
See the speak-punctuation property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertySpeechRate
See the speech-rate property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyStress
See the stress property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyTableLayout
See the table-layout property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyTextAlign
See the text-align property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyTextDecoration
See the text-decoration property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyTextIndent
See the text-indent property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyTextShadow
See the text-shadow property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyTextTransform
See the text-transform property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyTop
See the top property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyUnicodeBidi
See the unicode-bidi property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyVerticalAlign
See the vertical-align property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyVisibility
See the visibility property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyVoiceFamily
See the voice-family property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyVolume
See the volume property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyWhiteSpace
See the white-space property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyWidows
See the widows property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyWidth
See the width property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyWordSpacing
See the word-spacing property definition in CSS2.
(Inherited from ICSS2Properties.)
Public propertyZIndex
See the z-index property definition in CSS2.
(Inherited from ICSS2Properties.)
Methods
  NameDescription
Public methodGetEnumerator (Inherited from IEnumerableString.)
Public methodGetPropertyCSSValue
Used to retrieve the object representation of the value of a CSS property if it has been explicitly set within this declaration block. This method returns null if the property is a shorthand property. Shorthand property values can only be accessed and modified as strings, using the getPropertyValue and setProperty methods.
Public methodGetPropertyPriority
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.
Public methodGetPropertyValue
Used to retrieve the value of a CSS property if it has been explicitly set within this declaration block.
Public methodRemoveProperty
Used to remove a CSS property if it has been explicitly set within this declaration block.
Public methodSetProperty(String, String)
Used to set a property value with default priority within this declaration block. Default priority is not "important" i.e. String.Empty
Public methodSetProperty(String, String, String)
Used to set a property value and priority within this declaration block.
See Also