RichTextBox for WPF | ComponentOne
Elements Supported in RichTextBox / HTML Attributes
In This Topic
    HTML Attributes
    In This Topic

    RichTextBox for WPF supports several HTML 4 attribute. The following table lists HTML attributes by name and element and notes whether they are supported by RichTextBox for WPF.

    Name

    Elements

    Supported

    abbr

    TD, TH

    No

    accept-charset

    FORM

    No

    accept

    FORM, INPUT

    No

    accesskey

    A, AREA, BUTTON, INPUT, LABEL, LEGEND, TEXTAREA

    No

    action

    FORM

    No

    align

    CAPTION

    No

    align

    APPLET, IFRAME, IMG, INPUT, OBJECT

    No

    align

    LEGEND

    No

    align

    TABLE

    No

    align

    HR

    No

    align

    DIV, H1, H2, H3, H4, H5, H6, P

    Yes

    align

    COL, COLGROUP, TBODY, TD, TFOOT, TH, THEAD, TR

    No

    alink

    BODY

    No

    alt

    APPLET

    No

    alt

    AREA, IMG

    No

    alt

    INPUT

    No

    archive

    APPLET

    No

    archive

    OBJECT

    No

    axis

    TD, TH

    No

    background

    BODY

    No

    bgcolor

    TABLE

    Yes

    bgcolor

    TR

    Yes

    bgcolor

    TD, TH

    Yes

    bgcolor

    BODY

    Yes

    border

    TABLE

    Yes

    border

    IMG, OBJECT

    Yes

    cellpadding

    TABLE

    No

    cellspacing

    TABLE

    Yes

    char

    COL, COLGROUP, TBODY, TD, TFOOT, TH, THEAD, TR

    No

    charoff

    COL, COLGROUP, TBODY, TD, TFOOT, TH, THEAD, TR

    No

    charset

    A, LINK, SCRIPT

    No

    checked

    INPUT

    No

    cite

    BLOCKQUOTE, Q

    No

    cite

    DEL, INS

    No

    class

    All elements but BASE, BASEFONT, HEAD, HTML, META, PARAM, SCRIPT, STYLE, TITLE

    Yes

    classid

    OBJECT

    No

    clear

    BR

    No

    code

    APPLET

    No

    codebase

    OBJECT

    No

    codebase

    APPLET

    No

    codetype

    OBJECT

    No

    color

    BASEFONT, FONT

    No

    cols

    FRAMESET

    No

    cols

    TEXTAREA

    No

    colspan

    TD, TH

    Yes

    compact

    DIR, DL, MENU, OL, UL

    No

    content

    META

    No

    coords

    AREA

    No

    coords

    A

    No

    data

    OBJECT

    No

    datetime

    DEL, INS

    No

    declare

    OBJECT

    No

    defer

    SCRIPT

    No

    dir

    All elements but APPLET, BASE, BASEFONT, BDO, BR, FRAME, FRAMESET, IFRAME, PARAM, SCRIPT

    No

    dir

    BDO

    No

    disabled

    BUTTON, INPUT, OPTGROUP, OPTION, SELECT, TEXTAREA

    No

    enctype

    FORM

    No

    face

    BASEFONT, FONT

    Yes

    for

    LABEL

    No

    frame

    TABLE

    Yes

    frameborder

    FRAME, IFRAME

    No

    headers

    TD, TH

    No

    height

    IFRAME

    No

    height

    TD, TH

    No

    height

    IMG, OBJECT

    Yes

    height

    APPLET

    No

    href

    A, AREA, LINK

    Yes

    href

    BASE

    No

    hreflang

    A, LINK

    No

    hspace

    APPLET, IMG, OBJECT

    Yes

    http-equiv

    META

    No

    id

    All elements but BASE, HEAD, HTML, META, SCRIPT, STYLE, TITLE

    Yes

    ismap

    IMG, INPUT

    No

    label

    OPTION

    No

    label

    OPTGROUP

    No

    lang

    All elements but APPLET, BASE, BASEFONT, BR, FRAME, FRAMESET, IFRAME, PARAM, SCRIPT

    No

    language

    SCRIPT

    No

    link

    BODY

    No

    longdesc

    IMG

    No

    longdesc

    FRAME, IFRAME

    No

    marginheight

    FRAME, IFRAME

    No

    marginwidth

    FRAME, IFRAME

    No

    maxlength

    INPUT

    No

    media

    STYLE

    No

    media

    LINK

    No

    method

    FORM

    No

    multiple

    SELECT

    No

    name

    BUTTON, TEXTAREA

    No

    name

    APPLET

    No

    name

    SELECT

    No

    name

    FORM

    No

    name

    FRAME, IFRAME

    No

    name

    IMG

    No

    name

    A

    No

    name

    INPUT, OBJECT

    No

    name

    MAP

    No

    name

    PARAM

    No

    name

    META

    No

    nohref

    AREA

    No

    noresize

    FRAME

    No

    noshade

    HR

    No

    nowrap

    TD, TH

    No

    object

    APPLET

    No

    onblur

    A, AREA, BUTTON, INPUT, LABEL, SELECT, TEXTAREA

    No

    onchange

    INPUT, SELECT, TEXTAREA

    No

    onclick

    All elements but APPLET, BASE, BASEFONT, BDO, BR, FONT, FRAME, FRAMESET, HEAD, HTML, IFRAME, ISINDEX, META, PARAM, SCRIPT, STYLE, TITLE

    No

    ondblclick

    All elements but APPLET, BASE, BASEFONT, BDO, BR, FONT, FRAME, FRAMESET, HEAD, HTML, IFRAME, ISINDEX, META, PARAM, SCRIPT, STYLE, TITLE

    No

    onfocus

    A, AREA, BUTTON, INPUT, LABEL, SELECT, TEXTAREA

    No

    onkeydown

    All elements but APPLET, BASE, BASEFONT, BDO, BR, FONT, FRAME, FRAMESET, HEAD, HTML, IFRAME, ISINDEX, META, PARAM, SCRIPT, STYLE, TITLE

    No

    onkeypress

    All elements but APPLET, BASE, BASEFONT, BDO, BR, FONT, FRAME, FRAMESET, HEAD, HTML, IFRAME, ISINDEX, META, PARAM, SCRIPT, STYLE, TITLE

    No

    onkeyup

    All elements but APPLET, BASE, BASEFONT, BDO, BR, FONT, FRAME, FRAMESET, HEAD, HTML, IFRAME, ISINDEX, META, PARAM, SCRIPT, STYLE, TITLE

    No

    onload

    FRAMESET

    No

    onload

    BODY

    No

    onmousedown

    All elements but APPLET, BASE, BASEFONT, BDO, BR, FONT, FRAME, FRAMESET, HEAD, HTML, IFRAME, ISINDEX, META, PARAM, SCRIPT, STYLE, TITLE

    No

    onmousemove

    All elements but APPLET, BASE, BASEFONT, BDO, BR, FONT, FRAME, FRAMESET, HEAD, HTML, IFRAME, ISINDEX, META, PARAM, SCRIPT, STYLE, TITLE

    No

    onmouseout

    All elements but APPLET, BASE, BASEFONT, BDO, BR, FONT, FRAME, FRAMESET, HEAD, HTML, IFRAME, ISINDEX, META, PARAM, SCRIPT, STYLE, TITLE

    No

    onmouseover

    All elements but APPLET, BASE, BASEFONT, BDO, BR, FONT, FRAME, FRAMESET, HEAD, HTML, IFRAME, ISINDEX, META, PARAM, SCRIPT, STYLE, TITLE

    No

    onmouseup

    All elements but APPLET, BASE, BASEFONT, BDO, BR, FONT, FRAME, FRAMESET, HEAD, HTML, IFRAME, ISINDEX, META, PARAM, SCRIPT, STYLE, TITLE

    No

    onreset

    FORM

    No

    onselect

    INPUT, TEXTAREA

    No

    onsubmit

    FORM

    No

    onunload

    FRAMESET

    No

    onunload

    BODY

    No

    profile

    HEAD

    No

    prompt

    ISINDEX

    No

    readonly

    TEXTAREA

    No

    readonly

    INPUT

    No

    rel

    A, LINK

    No

    rev

    A, LINK

    No

    rows

    FRAMESET

    No

    rows

    TEXTAREA

    No

    rowspan

    TD, TH

    Yes

    rules

    TABLE

    Yes

    scheme

    META

    No

    scope

    TD, TH

    No

    scrolling

    FRAME, IFRAME

    No

    selected

    OPTION

    No

    shape

    AREA

    No

    shape

    A

    No

    size

    HR

    No

    size

    FONT

    No

    size

    INPUT

    No

    size

    BASEFONT

    No

    size

    SELECT

    No

    span

    COL

    No

    span

    COLGROUP

    No

    src

    SCRIPT

    No

    src

    INPUT

    No

    src

    FRAME, IFRAME

    No

    src

    IMG

    No

    standby

    OBJECT

    No

    start

    OL

    Yes

    style

    All elements but BASE, BASEFONT, HEAD, HTML, META, PARAM, SCRIPT, STYLE, TITLE

    Yes

    summary

    TABLE

    No

    tabindex

    A, AREA, BUTTON, INPUT, OBJECT, SELECT, TEXTAREA

    No

    target

    A, AREA, BASE, FORM, LINK

    No

    text

    BODY

    No

    title

    All elements but BASE, BASEFONT, HEAD, HTML, META, PARAM, SCRIPT, TITLE

    Yes

    type

    A, LINK

    No

    type

    OBJECT

    No

    type

    PARAM

    No

    type

    SCRIPT

    No

    type

    STYLE

    No

    type

    INPUT

    No

    type

    LI

    No

    type

    OL

    No

    type

    UL

    No

    type

    BUTTON

    No

    usemap

    IMG, INPUT, OBJECT

    No

    valign

    COL, COLGROUP, TBODY, TD, TFOOT, TH, THEAD, TR

    Yes

    value

    INPUT

    No

    value

    OPTION

    No

    value

    PARAM

    No

    value

    BUTTON

    No

    value

    LI

    No

    valuetype

    PARAM

    No

    version

    HTML

    No

    vlink

    BODY

    No

    vspace

    APPLET, IMG, OBJECT

    Yes

    width

    HR

    No

    width

    IFRAME

    No

    width

    IMG, OBJECT

    Yes

    width

    TABLE

    No

    width

    TD, TH

    No

    width

    APPLET

    No

    width

    COL

    Yes

    width

    COLGROUP

    No

    width

    PRE

    No