[]
        
(Showing Draft Content)

CSS2 Properties

RichTextBox for WPF supports several CSS2 properties. The following table lists CSS2 properties by name and media group and notes whether they are supported by RichTextBox for WPF.

Name Media groups Supported Comments
azimuth aural No
background-attachment visual No
background-color visual Yes
background-image visual Yes The image is not repeated.
background-position visual No
background-repeat visual No
background visual Yes Only supports color and image.
border-collapse visual Yes
border-color visual Yes
border-spacing visual Yes
border-style visual Yes Supports 'none', 'hidden', and solid. Other values are treated as solid.
border-top border-right border-bottom border-left visual Yes
border-top-color border-right-color border-bottom-color border-left-color visual Yes
border-top-style border-right-style border-bottom-style border-left-style visual Yes
border-top-width border-right-width border-bottom-width border-left-width visual Yes
border-width visual Yes
border visual Yes
bottom visual No
caption-side visual No
clear visual No
clip visual No
color visual Yes
content all No
counter-increment all No
counter-reset all No
cue-after aural No
cue-before aural No
cue aural No
cursor visual, interactive Yes All values except crosshair, move, progress, help, and <uri>.
direction visual No
display all Yes All values except run-in, inline-block, inline-table, and table-caption.
elevation aural No
empty-cells visual No
float visual No
font-family visual Yes
font-size visual Yes
font-style visual Yes
font-variant visual No
font-weight visual Yes
font visual Yes
height visual Yes Only in img elements.
left visual No
letter-spacing visual No
line-height visual Yes
list-style-image visual Yes
list-style-position visual No
list-style-type visual Yes All values except georgian, armenian and, lower-greek.
list-style visual Yes
margin-right margin-left visual Yes
margin-top margin-bottom visual Yes
margin visual Yes
max-height visual No
max-width visual No
min-height visual No
min-width visual No
orphans visual, paged No
outline-color visual, interactive No
outline-style visual, interactive No
outline-width visual, interactive No
outline visual, interactive No
overflow visual No
padding-top padding-right padding-bottom padding-left visual Yes
padding visual Yes
page-break-after visual, paged No
page-break-before visual, paged No
page-break-inside visual, paged No
pause-after aural No
pause-before aural No
pause aural No
pitch-range aural No
pitch aural No
play-during aural No
position visual No
quotes visual No
richness aural No
right visual No
speak-header aural No
speak-numeral aural No
speak-punctuation aural No
speak aural No
speech-rate aural No
stress aural No
table-layout visual No
text-align visual Yes
text-decoration visual Yes
text-indent visual Yes
text-transform visual No
top visual No
unicode-bidi visual No
vertical-align visual Yes All values except <percentage> and <length>.
visibility visual Yes
voice-family aural No
volume aural No
white-space visual Yes Nowrap and pre are treated like normal and pre-wrap.
widows visual, paged No
width visual Yes Only in img elements.
word-spacing visual No
z-index visual No