HtmlTextWriterStyle 열거형
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
HtmlTextWriter 또는 Html32TextWriter 개체 출력 스트림에 HTML 스타일을 사용할 수 있도록 지정합니다.
public enum class HtmlTextWriterStyle
public enum HtmlTextWriterStyle
type HtmlTextWriterStyle =
Public Enum HtmlTextWriterStyle
- 상속
필드
| Name | 값 | Description |
|---|---|---|
| BackgroundColor | 0 |
|
| BackgroundImage | 1 |
|
| BorderCollapse | 2 |
|
| BorderColor | 3 |
|
| BorderStyle | 4 |
|
| BorderWidth | 5 |
|
| Color | 6 |
|
| Cursor | 16 |
|
| Direction | 17 |
|
| Display | 18 |
|
| Filter | 19 |
|
| FontFamily | 7 |
|
| FontSize | 8 |
|
| FontStyle | 9 |
|
| FontVariant | 20 |
|
| FontWeight | 10 |
|
| Height | 11 |
|
| Left | 21 |
|
| ListStyleImage | 14 |
|
| ListStyleType | 15 |
|
| Margin | 22 |
|
| MarginBottom | 23 |
|
| MarginLeft | 24 |
|
| MarginRight | 25 |
|
| MarginTop | 26 |
|
| Overflow | 27 |
|
| OverflowX | 28 |
|
| OverflowY | 29 |
|
| Padding | 30 |
|
| PaddingBottom | 31 |
|
| PaddingLeft | 32 |
|
| PaddingRight | 33 |
|
| PaddingTop | 34 |
|
| Position | 35 |
|
| TextAlign | 36 |
|
| TextDecoration | 12 |
|
| TextOverflow | 38 |
|
| Top | 39 |
|
| VerticalAlign | 37 |
|
| Visibility | 40 |
|
| WhiteSpace | 41 |
|
| Width | 13 |
|
| ZIndex | 42 |
|
예제
다음 예제에서는 합니다 HtmlTextWriterStyle 인 열거형을 AddStyleAttribute 메서드를 추가 color HTML 요소에 대 한 스타일 특성 해당 값을 가져오거나 설정 합니다.
writer->AddStyleAttribute( HtmlTextWriterStyle::Color, "Red" );
writer.AddStyleAttribute(HtmlTextWriterStyle.Color, "Red");
writer.AddStyleAttribute(HtmlTextWriterStyle.Color, "Red")
설명
HtmlTextWriter 및 Html32TextWriter 개체 다음 열거형 값을 사용 하 여 적절 한 HTML 스타일을 HTML 문자열을 등록 합니다.