HtmlTextWriter.TagLeftChar 필드

정의

태그의 여는 꺾쇠 괄호(<)를 나타냅니다.

public: char TagLeftChar;
public const char TagLeftChar;
val mutable TagLeftChar : char
Public Const TagLeftChar As Char 

필드 값

예제

다음 코드 예제에서는 요소 이름으로 요소의 여는 <table> 태그의 첫 번째 문자를 렌더링합니다. 이 코드 예제에서는 필드가 있는 Write 메서드를 TagLeftChar 매개 변수로 사용합니다.

이 코드 예제에서는 다음 태그를 렌더링합니다.

<table

// Create the opening tag of a table element
// with styles by using the HtmlTextWriter class.
writer.Write(HtmlTextWriter.TagLeftChar);
writer.Write("table");
' Create the opening tag of a table element
' with styles by using the HtmlTextWriter class. 
writer.Write(HtmlTextWriter.TagLeftChar)
writer.Write("table")

설명

TagLeftChar 필드는 태그 태그를 작성할 RenderBeginTag때 , WriteBeginTag, WriteFullBeginTagWriteEndTag 메서드에서 사용됩니다.

적용 대상

추가 정보