HtmlTextWriterAttribute 열거형
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
웹 요청을 처리할 때 HtmlTextWriter 또는 Html32TextWriter 개체가 여는 태그에 쓰는 HTML 특성을 지정합니다.
public enum class HtmlTextWriterAttribute
public enum HtmlTextWriterAttribute
type HtmlTextWriterAttribute =
Public Enum HtmlTextWriterAttribute
- 상속
필드
| Abbr | 40 |
|
| Accesskey | 0 |
|
| Align | 1 |
|
| Alt | 2 |
|
| AutoComplete | 41 |
|
| Axis | 42 |
|
| Background | 3 |
|
| Bgcolor | 4 |
|
| Border | 5 |
|
| Bordercolor | 6 |
|
| Cellpadding | 7 |
|
| Cellspacing | 8 |
|
| Checked | 9 |
|
| Class | 10 |
|
| Cols | 11 |
|
| Colspan | 12 |
|
| Content | 43 |
|
| Coords | 44 |
|
| DesignerRegion | 45 |
|
| Dir | 46 |
|
| Disabled | 13 |
|
| For | 14 |
|
| Headers | 47 |
|
| Height | 15 |
|
| Href | 16 |
|
| Id | 17 |
|
| Longdesc | 48 |
|
| Maxlength | 18 |
|
| Multiple | 19 |
|
| Name | 20 |
|
| Nowrap | 21 |
|
| Onchange | 22 |
|
| Onclick | 23 |
|
| ReadOnly | 24 |
|
| Rel | 49 |
|
| Rows | 25 |
|
| Rowspan | 26 |
|
| Rules | 27 |
|
| Scope | 50 |
|
| Selected | 28 |
|
| Shape | 51 |
|
| Size | 29 |
|
| Src | 30 |
|
| Style | 31 |
|
| Tabindex | 32 |
|
| Target | 33 |
|
| Title | 34 |
|
| Type | 35 |
|
| Usemap | 52 |
|
| Valign | 36 |
|
| Value | 37 |
|
| VCardName | 53 |
|
| Width | 38 |
|
| Wrap | 39 |
|
예제
다음 예제에서는 합니다 HtmlTextWriterAttribute 인 열거형을 AddAttribute 메서드를 추가 Onclick HTML 요소에 특성 ECMAScript 코드에 해당 값을 가져오거나 설정 합니다.
writer->AddAttribute( HtmlTextWriterAttribute::Onclick, "alert('Hello');" );
writer.AddAttribute(HtmlTextWriterAttribute.Onclick, "alert('Hello');");
writer.AddAttribute(HtmlTextWriterAttribute.Onclick, "alert('Hello');")
설명
이 열거형의 다음 메서드를 사용 하 여 일반적으로 사용 되는 HtmlTextWriter 클래스: AddAttribute를 GetAttributeName를 IsAttributeDefined, RenderBeginTag합니다.