TableCaptionAlign 열거형

정의

HTML 캡션 요소로 렌더링될 텍스트의 가로 또는 세로 위치를 지정합니다.

public enum class TableCaptionAlign
public enum TableCaptionAlign
type TableCaptionAlign = 
Public Enum TableCaptionAlign
상속
TableCaptionAlign

필드

Bottom 2

캡션 요소가 테이블의 아래쪽에 맞춰집니다.

Left 3

캡션 요소가 테이블의 왼쪽에 맞춰집니다.

NotSet 0

캡션 맞춤이 설정되어 있지 않습니다. 캡션을 렌더링하는 브라우저에서 캡션의 맞춤 위치를 결정합니다.

Right 4

캡션 요소가 테이블의 오른쪽에 맞춰집니다.

Top 1

캡션 요소가 테이블의 위쪽에 맞춰집니다.

예제

다음 예제에서는 사용 하는 방법에 설명 합니다 TableCaptionAlign 설정 하는 열거형을 CaptionAlign 속성에서를 Table 컨트롤. 합니다 Table 컨트롤에 TableRow 도시 및 우편 번호 값을 표시 하는 개체입니다.

<%@ page language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>TableCaptionAlign Example</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>

    <h3>TableCaptionAlign Enumeration Example</h3>
    <!-- Scope attribute added for accessibility -->
    <asp:table id="Table1" runat="server" CellPadding="4"
      caption="City Postal Codes" CellSpacing="1"
      captionalign="Right" gridlines="Both">
    <asp:TableRow>
      <asp:TableHeaderCell id="CityHeader" Scope="Column">
        City Name
      </asp:TableHeaderCell>
      <asp:TableHeaderCell id="ZipHeader" Scope="Column">
        ZIP Code
      </asp:TableHeaderCell>
    </asp:TableRow>
    <asp:TableRow>
      <asp:TableCell>
        Redmond
      </asp:TableCell>
      <asp:TableCell>
        98052
      </asp:TableCell>
    </asp:TableRow>
    <asp:TableRow>
      <asp:TableCell>
        Albany
      </asp:TableCell>
      <asp:TableCell>
        12222
      </asp:TableCell>
    </asp:TableRow>
    </asp:table>

    </div>
    </form>
  </body>
</html>
<%@ page language="VB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>TableCaptionAlign Example</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>

    <h3>TableCaptionAlign Enumeration Example</h3>
    <!-- Scope attribute added for accessibility -->
    <asp:table id="Table1" runat="server" CellPadding="4"
      caption="City Postal Codes" CellSpacing="1"
      captionalign="Right" gridlines="Both">
    <asp:TableRow>
      <asp:TableHeaderCell id="CityHeader" Scope="Column">
        City Name
      </asp:TableHeaderCell>
      <asp:TableHeaderCell id="ZipHeader" Scope="Column">
        ZIP Code
      </asp:TableHeaderCell>
    </asp:TableRow>
    <asp:TableRow>
      <asp:TableCell>
        Redmond
      </asp:TableCell>
      <asp:TableCell>
        98052
      </asp:TableCell>
    </asp:TableRow>
    <asp:TableRow>
      <asp:TableCell>
        Albany
      </asp:TableCell>
      <asp:TableCell>
        12222
      </asp:TableCell>
    </asp:TableRow>
    </asp:table>

    </div>
    </form>
  </body>
</html>

설명

합니다 TableCaptionAlign 열거형 같은 테이블로 렌더링 될 수 있는 컨트롤의 HTML 캡션 요소의 가로 또는 세로 위치를 나타내는 Table, GridView, DetailsView, 또는 Calendar합니다. 예를 들어, 합니다 CaptionAlign 캡션 맞춤을 설정 하려면 이러한 열거형 값을 사용 하는 속성을 Table 컨트롤입니다.

NotSet를 지정 하는 경우 컨트롤이 렌더링 되는 브라우저에서 캡션의 맞춤 위치를 결정 합니다.

CaptionAlign 속성 테이블로 렌더링 될 수 있는 컨트롤에 대 한 캡션 요소의 위치를 지정 합니다. Caption 속성은 캡션 요소에 표시할 텍스트를 지정 합니다. 보조 기술 디바이스에 제공한 설명을 사용할 수는 Caption 속성 컨트롤을 보다 쉽게 액세스할 수 있도록 합니다. 예를 들어, 화면 판독기 디바이스 테이블에 대 한 설명을 제공 하려면 사용자에 게 캡션을 읽을 수 있습니다.

적용 대상

추가 정보