SiteMapPath クラス
定義
最小限のページ領域で、より簡単に Web サイト内を移動できるようにする、一連のテキストやイメージのハイパーリンクを表示します。Displays a set of text or image hyperlinks that enable users to more easily navigate a Web site, while taking a minimal amount of page space.
public ref class SiteMapPath : System::Web::UI::WebControls::CompositeControl
public class SiteMapPath : System.Web.UI.WebControls.CompositeControl
type SiteMapPath = class
inherit CompositeControl
Public Class SiteMapPath
Inherits CompositeControl
- 継承
例
次のコード例では、 SiteMapPath Web フォームページで宣言によってコントロールを使用します。The following code example uses a SiteMapPath control declaratively in a Web Forms page. この例では、ノードに適用されるテンプレートとスタイルの順序を制御する優先順位の規則をいくつか示し SiteMapPath ます。This example demonstrates some of the rules of precedence that govern the order with which templates and styles are applied to SiteMapPath nodes.
<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>ASP.NET Example</title>
</head>
<body>
<form id="form1" runat="server">
<!-- The following example demonstrates some of the orders
of precedence when applying styles and templates to
functional nodes of a SiteMapPath.
The NodeStyle and RootNodeStyle define the same attributes,
but are different and conflict with each other: the
RootNodeStyle supersedes NodeStyle, and is the style
rendered. Notice, however, that the underline style
defined by NodeStyle is still applied.
Both a CurrentNodeStyle and a CurrentNodeTemplate are
defined. A template supersedes a style for a node
type, so CurrentNodeTemplate is displayed and CurrentNodeStyle
is ignored. -->
<asp:SiteMapPath ID="SiteMapPath1" runat="server"
RenderCurrentNodeAsLink="true"
NodeStyle-Font-Names="Franklin Gothic Medium"
NodeStyle-Font-Underline="true"
NodeStyle-Font-Bold="true"
RootNodeStyle-Font-Names="Symbol"
RootNodeStyle-Font-Bold="false"
CurrentNodeStyle-Font-Names="Verdana"
CurrentNodeStyle-Font-Size="10pt"
CurrentNodeStyle-Font-Bold="true"
CurrentNodeStyle-ForeColor="red"
CurrentNodeStyle-Font-Underline="false">
<CURRENTNODETEMPLATE>
<asp:Image id="Image1" runat="server" ImageUrl="WebForm2.jpg" AlternateText="WebForm2"/>
</CURRENTNODETEMPLATE>
</asp:SiteMapPath>
</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">
<script runat="server">
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>ASP.NET Example</title>
</head>
<body>
<form id="form1" runat="server">
<!-- The following example demonstrates some of the orders
of precedence when applying styles and templates to
functional nodes of a SiteMapPath.
The NodeStyle and RootNodeStyle define the same attributes,
but are different and conflict with each other: the
RootNodeStyle supersedes NodeStyle, and is the style
rendered. Notice, however, that the underline style
defined by NodeStyle is still applied.
Both a CurrentNodeStyle and a CurrentNodeTemplate are
defined. A template supersedes a style for a node
type, so CurrentNodeTemplate is displayed and CurrentNodeStyle
is ignored. -->
<asp:SiteMapPath ID="SiteMapPath1" runat="server"
RenderCurrentNodeAsLink="true"
NodeStyle-Font-Names="Franklin Gothic Medium"
NodeStyle-Font-Underline="true"
NodeStyle-Font-Bold="true"
RootNodeStyle-Font-Names="Symbol"
RootNodeStyle-Font-Bold="false"
CurrentNodeStyle-Font-Names="Verdana"
CurrentNodeStyle-Font-Size="10pt"
CurrentNodeStyle-Font-Bold="true"
CurrentNodeStyle-ForeColor="red"
CurrentNodeStyle-Font-Underline="false">
<CURRENTNODETEMPLATE>
<asp:Image id="Image1" runat="server" ImageUrl="WebForm2.jpg" AlternateText="WebForm2"/>
</CURRENTNODETEMPLATE>
</asp:SiteMapPath>
</form>
</body>
</html>
前の例では、既定のサイトマッププロバイダーと、次の構造の Web.config ファイルを使用しています。The previous example uses the default site map provider and a Web.sitemap file with the following structure.
<siteMap>
<siteMapNode title="WebForm1" description="WebForm1" url="WebForm1.aspx" >
<siteMapNode title="WebForm2" description="WebForm2" url="WebForm2.aspx"/>
</siteMapNode>
</siteMap>
次のコード例は、コントロールを拡張 SiteMapPath し、メソッドをオーバーライドすることによって新しい機能を追加する方法を示して InitializeItem います。The following code example demonstrates extends the SiteMapPath control and adds new functionality to it by overriding the InitializeItem method. コントロールは、現在のノードの後にを追加して、 DropDownSiteMapPath
DropDownList 現在のページの子ノードであるページに簡単に移動できるようにします。The DropDownSiteMapPath
control adds a DropDownList after the current node, to enable easy navigation to pages that are child nodes of the current page. この例では、オブジェクトを SiteMapNodeItem 確認 SiteMapNodeItemType し、項目の作成後にメソッドを呼び出すなど、オブジェクトを操作する方法を示し OnItemCreated ます。This example demonstrates how to work with SiteMapNodeItem objects, including checking their SiteMapNodeItemType and calling the OnItemCreated method after the items are created.
using System;
using System.Collections;
using System.ComponentModel;
using System.Security.Permissions;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
// The DropDownNavigationPath is a class that extends the SiteMapPath
// control and renders a DropDownList after the CurrentNode. The
// DropDownList displays a list of pages found further down the site map
// hierarchy from the current one. Selecting an item in the DropDownList
// redirects to that page.
//
// For simplicity, the DropDownNavigationPath assumes the
// RootToCurrent PathDirection, and does not apply styles
// or templates the current node.
//
[AspNetHostingPermission(SecurityAction.Demand, Level=AspNetHostingPermissionLevel.Minimal)]
public class DropDownNavigationPath : SiteMapPath {
// Override the InitializeItem method to add a PathSeparator
// and DropDownList to the current node.
protected override void InitializeItem(SiteMapNodeItem item) {
// The only node that must be handled is the CurrentNode.
if (item.ItemType == SiteMapNodeItemType.Current)
{
HyperLink hLink = new HyperLink();
// No Theming for the HyperLink.
hLink.EnableTheming = false;
// Enable the link of the SiteMapPath is enabled.
hLink.Enabled = this.Enabled;
// Set the properties of the HyperLink to
// match those of the corresponding SiteMapNode.
hLink.NavigateUrl = item.SiteMapNode.Url;
hLink.Text = item.SiteMapNode.Title;
if (ShowToolTips) {
hLink.ToolTip = item.SiteMapNode.Description;
}
// Apply styles or templates to the HyperLink here.
// ...
// ...
// Add the item to the Controls collection.
item.Controls.Add(hLink);
AddDropDownListAfterCurrentNode(item);
}
else {
base.InitializeItem(item);
}
}
private void AddDropDownListAfterCurrentNode(SiteMapNodeItem item) {
SiteMapNodeCollection childNodes = item.SiteMapNode.ChildNodes;
// Only do this work if there are child nodes.
if (childNodes != null) {
// Add another PathSeparator after the CurrentNode.
SiteMapNodeItem finalSeparator =
new SiteMapNodeItem(item.ItemIndex,
SiteMapNodeItemType.PathSeparator);
SiteMapNodeItemEventArgs eventArgs =
new SiteMapNodeItemEventArgs(finalSeparator);
InitializeItem(finalSeparator);
// Call OnItemCreated every time a SiteMapNodeItem is
// created and initialized.
OnItemCreated(eventArgs);
// The pathSeparator does not bind to any SiteMapNode, so
// do not call DataBind on the SiteMapNodeItem.
item.Controls.Add(finalSeparator);
// Create a DropDownList and populate it with the children of the
// CurrentNode. There are no styles or templates that are applied
// to the DropDownList control. If OnSelectedIndexChanged is raised,
// the event handler redirects to the page selected.
// The CurrentNode has child nodes.
DropDownList ddList = new DropDownList();
ddList.AutoPostBack = true;
ddList.SelectedIndexChanged += new EventHandler(this.DropDownNavPathEventHandler);
// Add a ListItem to the DropDownList for every node in the
// SiteMapNodes collection.
foreach (SiteMapNode node in childNodes) {
ddList.Items.Add(new ListItem(node.Title, node.Url));
}
item.Controls.Add(ddList);
}
}
// The sender is the DropDownList.
private void DropDownNavPathEventHandler(object sender,EventArgs e) {
DropDownList ddL = sender as DropDownList;
// Redirect to the page the user chose.
if (Context != null)
Context.Response.Redirect(ddL.SelectedValue);
}
}
Imports System.Collections
Imports System.ComponentModel
Imports System.Security.Permissions
Imports System.Web
Imports System.Web.UI
Imports System.Web.UI.WebControls
Namespace Samples.AspNet
' The DropDownNavigationPath is a class that extends the SiteMapPath
' control and renders a DropDownList after the CurrentNode. The
' DropDownList displays a list of pages found further down the site map
' hierarchy from the current one. Selecting an item in the DropDownList
' redirects to that page.
'
' For simplicity, the DropDownNavigationPath assumes the
' RootToCurrent PathDirection, and does not apply styles
' or templates the current node.
'
<AspNetHostingPermission(SecurityAction.Demand, Level:=AspNetHostingPermissionLevel.Minimal)> _
Public Class DropDownNavigationPath
Inherits SiteMapPath
' Override the InitializeItem method to add a PathSeparator
' and DropDownList to the current node.
Protected Overrides Sub InitializeItem(item As SiteMapNodeItem)
' The only node that must be handled is the CurrentNode.
If item.ItemType = SiteMapNodeItemType.Current Then
Dim hLink As New HyperLink()
' No Theming for the HyperLink.
hLink.EnableTheming = False
' Enable the link of the SiteMapPath is enabled.
hLink.Enabled = Me.Enabled
' Set the properties of the HyperLink to
' match those of the corresponding SiteMapNode.
hLink.NavigateUrl = item.SiteMapNode.Url
hLink.Text = item.SiteMapNode.Title
If ShowToolTips Then
hLink.ToolTip = item.SiteMapNode.Description
End If
' Apply styles or templates to the HyperLink here.
' ...
' ...
' Add the item to the Controls collection.
item.Controls.Add(hLink)
AddDropDownListAfterCurrentNode(item)
Else
MyBase.InitializeItem(item)
End If
End Sub
Private Sub AddDropDownListAfterCurrentNode(item As SiteMapNodeItem)
Dim childNodes As SiteMapNodeCollection = item.SiteMapNode.ChildNodes
' Only do this work if there are child nodes.
If Not (childNodes Is Nothing) Then
' Add another PathSeparator after the CurrentNode.
Dim finalSeparator As New SiteMapNodeItem(item.ItemIndex, SiteMapNodeItemType.PathSeparator)
Dim eventArgs As New SiteMapNodeItemEventArgs(finalSeparator)
InitializeItem(finalSeparator)
' Call OnItemCreated every time a SiteMapNodeItem is
' created and initialized.
OnItemCreated(eventArgs)
' The pathSeparator does not bind to any SiteMapNode, so
' do not call DataBind on the SiteMapNodeItem.
item.Controls.Add(finalSeparator)
' Create a DropDownList and populate it with the children of the
' CurrentNode. There are no styles or templates that are applied
' to the DropDownList control. If OnSelectedIndexChanged is raised,
' the event handler redirects to the page selected.
' The CurrentNode has child nodes.
Dim ddList As New DropDownList()
ddList.AutoPostBack = True
AddHandler ddList.SelectedIndexChanged, AddressOf Me.DropDownNavPathEventHandler
' Add a ListItem to the DropDownList for every node in the
' SiteMapNodes collection.
Dim node As SiteMapNode
For Each node In childNodes
ddList.Items.Add(New ListItem(node.Title, node.Url))
Next node
item.Controls.Add(ddList)
End If
End Sub
' The sender is the DropDownList.
Private Sub DropDownNavPathEventHandler(sender As Object, e As EventArgs)
Dim ddL As DropDownList = CType(sender, DropDownList)
' Redirect to the page the user chose.
If Not (Context Is Nothing) Then
Context.Response.Redirect(ddL.SelectedValue)
End If
End Sub
End Class
End Namespace
注釈
このトピックの内容:In this topic:
はじめにIntroduction
コントロールは、 SiteMapPath オブジェクトによって提供されるデータを反映するサイトナビゲーションコントロールです SiteMap 。The SiteMapPath control is a site navigation control that reflects data provided by the SiteMap object. サイト間を簡単に移動し、現在表示されているページがサイト内にある場所の参照ポイントとして機能する、スペースを節約する方法を提供します。It provides a space-saving way to easily navigate a site and serves as a point of reference for where the currently displayed page is within a site. この種類のコントロールは、通常、階層リンク (エレメント) と呼ばれます。これは、現在の場所からページの階層をエスケープするためのハイパーリンクされたページ名の階層パスを表示するためです。This type of control is commonly called a breadcrumb, or eyebrow, because it displays a hierarchical path of hyperlinked page names that provides an escape up the hierarchy of pages from the current location. SiteMapDataSource.SiteMapDataSource. は、 SiteMapPath 深い階層のページ構造を持つサイトでは便利ですが、またはでは、ページの領域が過剰になることがあり TreeView Menu ます。The SiteMapPath is useful for sites that have deep hierarchical page structures, but where a TreeView or Menu might require too much space on a page.
コントロールは、 SiteMapPath Web サイトのサイトマップデータを直接操作します。The SiteMapPath control works directly with your Web site's site map data. サイトマップに表示されていないページで使用する場合は、表示されません。If you use it on a page that is not represented in your site map, it will not be displayed. サイトマップの詳細については、「 ASP.NET Site Navigation」を参照してください。For more information about site maps, see ASP.NET Site Navigation.
NodesNodes
は、 SiteMapPath ノードで構成されます。The SiteMapPath is made up of nodes. パス内の各要素はノードと呼ばれ、オブジェクトによって表され SiteMapNodeItem ます。Each element in the path is called a node and is represented by a SiteMapNodeItem object. パスを固定し、階層ツリーのベースを表すノードは、ルートノードと呼ばれます。The node that anchors the path and represents the base of the hierarchical tree is called the root node. 現在表示されているページを表すノードは、現在のノードです。The node that represents the currently displayed page is the current node. 現在のノードとルートノードの間にあるその他のノードは親ノードです。Any other node between the current node and root node is a parent node. 次の表では、3種類のノードについて説明します。The following table describes the three different node types.
ノード型Node type | 説明Description |
---|---|
rootroot | ノードの階層セットを固定するノード。A node that anchors a hierarchical set of nodes. |
parentparent | 1つ以上の子ノードを持つが、現在のノードではないノード。A node that has one or more child nodes, but is not the current node. |
現在のcurrent | 現在表示されているページを表すノード。A node that represents the currently displayed page. |
ノードの外観Node Appearance
によって表示される各ノード SiteMapPath は、 HyperLink またはのコントロールで、 Literal テンプレートまたはスタイルをに適用できます。Each node displayed by a SiteMapPath is a HyperLink or Literal control that you can apply a template or style to. テンプレートとスタイルは、次の2つの優先順位の規則に従ってノードに適用されます。The templates and styles are applied to nodes according to two rules of precedence:
テンプレートがノードに対して定義されている場合、そのノードに対して定義されているすべてのスタイルがオーバーライドされます。If a template is defined for a node, it overrides any style defined for the node.
ノードの種類に固有のテンプレートとスタイルは、すべてのノードに定義されている一般的なテンプレートとスタイルを上書きします。Templates and styles that are specific to types of nodes override general templates and styles defined for all nodes.
NodeStyleプロパティと NodeTemplate プロパティは、ノードの種類に関係なく、すべてのノードに適用されます。The NodeStyle and NodeTemplate properties are applied to all nodes, regardless of their node type. これらのプロパティの両方が定義されている場合は、が優先され NodeTemplate ます。If both these properties are defined, the NodeTemplate takes precedence.
CurrentNodeTemplateプロパティと CurrentNodeStyle プロパティは、現在表示されているページを表すノードに適用されます。The CurrentNodeTemplate and CurrentNodeStyle properties are applied to nodes that represent the currently displayed page. NodeTemplateに加えてが定義されている場合 CurrentNodeTemplate 、は無視されます。If a NodeTemplate is defined in addition to the CurrentNodeTemplate, it is ignored. に加えてが定義されている場合は NodeStyle CurrentNodeStyle 、マージされた CurrentNodeStyle スタイルを作成するために、とマージされます。If a NodeStyle is defined in addition to the CurrentNodeStyle, it is merged with the CurrentNodeStyle to create a merged style. この結合スタイルは、のすべての要素に加えて、と競合しないの CurrentNodeStyle 追加の要素を使用し NodeStyle CurrentNodeStyle ます。This merged style uses all the elements of the CurrentNodeStyle, plus any additional elements of the NodeStyle that do not conflict with the CurrentNodeStyle.
RootNodeTemplateプロパティと RootNodeStyle プロパティは、サイトナビゲーション階層のルートを表すノードに適用されます。The RootNodeTemplate and RootNodeStyle properties are applied to the node that represents the root of the site navigation hierarchy. NodeTemplateに加えてが定義されている場合 RootNodeTemplate 、は無視されます。If a NodeTemplate is defined in addition to the RootNodeTemplate, it is ignored. に加えてが定義されている場合は NodeStyle RootNodeStyle 、マージされた RootNodeStyle スタイルを作成するために、とマージされます。If a NodeStyle is defined in addition to the RootNodeStyle, it is merged with the RootNodeStyle to create a merged style. この結合スタイルは、のすべての要素に加えて、 RootNodeStyle と競合しないの追加の要素を使用し NodeStyle CurrentNodeStyle ます。This merged style uses all the elements of the RootNodeStyle, plus any additional elements of the NodeStyle that did not conflict with the CurrentNodeStyle. 最後に、現在表示されているページがサイトのルートページである場合は、およびの代わりにとが使用され RootNodeTemplate RootNodeStyle CurrentNodeTemplate CurrentNodeStyle ます。Finally, if the currently displayed page is the root page of the site, the RootNodeTemplate and RootNodeStyle are used instead of the CurrentNodeTemplate or CurrentNodeStyle.
コントロールは、 SiteMapPath SiteMapProvider サイトナビゲーション情報のデータソースとして、プロパティで識別されるサイトマッププロバイダーを使用します。The SiteMapPath control uses the site map provider identified by the SiteMapProvider property as its data source for site navigation information. プロバイダーが指定されていない場合は、プロパティで指定されたサイトの既定のプロバイダーが使用され SiteMap.Provider ます。If no provider is specified, it uses the default provider for the site, identified in the SiteMap.Provider property. 通常、これは ASP.NET の既定のサイトマッププロバイダーのインスタンス () です XmlSiteMapProvider 。Typically, this is an instance of the default site map provider for ASP.NET, the XmlSiteMapProvider. SiteMapPathコントロールがサイト内で使用されていても、サイトマッププロバイダーが構成されていない場合、コントロールは例外をスロー HttpException します。If the SiteMapPath control is used within a site but no site map provider is configured, the control throws an HttpException exception.
eventsEvents
コントロールには、 SiteMapPath プログラミング可能なイベントも用意されています。The SiteMapPath control also provides events that you can program against. これにより、イベントが発生するたびにカスタムルーチンを実行できます。This allows you to run a custom routine whenever an event occurs. 次の表に、コントロールでサポートされるイベントの一覧を示し SiteMapPath ます。The following table lists the events supported by the SiteMapPath control.
EventEvent | 説明Description |
---|---|
ItemCreated | コントロールが最初にを作成し、それをに関連付けたときに発生し SiteMapPath SiteMapNodeItem SiteMapNode ます。Occurs when the SiteMapPath control first creates a SiteMapNodeItem and associates it with a SiteMapNode. |
ItemDataBound | が SiteMapNodeItem 、に含まれるサイトマップデータにバインドされている場合に発生し SiteMapNode ます。Occurs when a SiteMapNodeItem is bound to site map data contained by the SiteMapNode. |
SiteMapPath コントロールのカスタマイズCustomizing the SiteMapPath Control
から派生するクラス SiteMapPath は、 InitializeItem メソッドをオーバーライドし SiteMapNodeItem て、ナビゲーションコントロールに含まれるコントロールをカスタマイズします。Classes that derive from SiteMapPath override the InitializeItem method to customize the SiteMapNodeItem controls contained by the navigation control. オブジェクトを作成してに追加する方法を完全に制御するために SiteMapNodeItem SiteMapPath 、派生クラスはメソッドをオーバーライドし CreateControlHierarchy ます。For complete control over the way SiteMapNodeItem objects are created and added to the SiteMapPath, derived classes override the CreateControlHierarchy method.
ユーザー補助Accessibility
ユーザー補助の標準に準拠したマークアップを生成するようにこのコントロールを構成する方法については、「 Visual Studio でのユーザー補助と ASP.NET と ASP.NET のコントロールとアクセシビリティ」を参照してください。For information about how to configure this control so that it generates markup that conforms to accessibility standards, see Accessibility in Visual Studio and ASP.NET and ASP.NET Controls and Accessibility.
宣言型の構文Declarative Syntax
<asp:SiteMapPath
AccessKey="string"
BackColor="color name|#dddddd"
BorderColor="color name|#dddddd"
BorderStyle="NotSet|None|Dotted|Dashed|Solid|Double|Groove|Ridge|
Inset|Outset"
BorderWidth="size"
CssClass="string"
Enabled="True|False"
EnableTheming="True|False"
EnableViewState="True|False"
Font-Bold="True|False"
Font-Italic="True|False"
Font-Names="string"
Font-Overline="True|False"
Font-Size="string|Smaller|Larger|XX-Small|X-Small|Small|Medium|
Large|X-Large|XX-Large"
Font-Strikeout="True|False"
Font-Underline="True|False"
ForeColor="color name|#dddddd"
Height="size"
ID="string"
OnDataBinding="DataBinding event handler"
OnDisposed="Disposed event handler"
OnInit="Init event handler"
OnItemCreated="ItemCreated event handler"
OnItemDataBound="ItemDataBound event handler"
OnLoad="Load event handler"
OnPreRender="PreRender event handler"
OnUnload="Unload event handler"
ParentLevelsDisplayed="integer"
PathDirection="RootToCurrent|CurrentToRoot"
PathSeparator="string"
RenderCurrentNodeAsLink="True|False"
runat="server"
ShowToolTips="True|False"
SiteMapProvider="string"
SkinID="string"
SkipLinkText="string"
Style="string"
TabIndex="integer"
ToolTip="string"
Visible="True|False"
Width="size"
>
<CurrentNodeStyle />
<CurrentNodeTemplate>
<!-- child controls -->
</CurrentNodeTemplate>
<NodeStyle />
<NodeTemplate>
<!-- child controls -->
</NodeTemplate>
<PathSeparatorStyle />
<PathSeparatorTemplate>
<!-- child controls -->
</PathSeparatorTemplate>
<RootNodeStyle />
<RootNodeTemplate>
<!-- child controls -->
</RootNodeTemplate>
</asp:SiteMapPath>
コンストラクター
SiteMapPath() |
SiteMapPath クラスの新しいインスタンスを初期化します。Initializes a new instance of the SiteMapPath class. |
プロパティ
AccessKey |
Web サーバー コントロールにすばやく移動できるアクセス キーを取得または設定します。Gets or sets the access key that allows you to quickly navigate to the Web server control. (継承元 WebControl) |
Adapter |
コントロール用のブラウザー固有のアダプターを取得します。Gets the browser-specific adapter for the control. (継承元 Control) |
AppRelativeTemplateSourceDirectory |
このコントロールが含まれている Page オブジェクトまたは UserControl オブジェクトのアプリケーション相対の仮想ディレクトリを取得または設定します。Gets or sets the application-relative virtual directory of the Page or UserControl object that contains this control. (継承元 Control) |
Attributes |
コントロールのプロパティに対応しない任意の属性 (表示専用) のコレクションを取得します。Gets the collection of arbitrary attributes (for rendering only) that do not correspond to properties on the control. (継承元 WebControl) |
BackColor |
Web サーバー コントロールの背景色を取得または設定します。Gets or sets the background color of the Web server control. (継承元 WebControl) |
BindingContainer |
このコントロールのデータ バインディングを格納しているコントロールを取得します。Gets the control that contains this control's data binding. (継承元 Control) |
BorderColor |
Web コントロールの境界線の色を取得または設定します。Gets or sets the border color of the Web control. (継承元 WebControl) |
BorderStyle |
Web サーバー コントロールの境界線スタイルを取得または設定します。Gets or sets the border style of the Web server control. (継承元 WebControl) |
BorderWidth |
Web サーバー コントロールの境界線の幅を取得または設定します。Gets or sets the border width of the Web server control. (継承元 WebControl) |
ChildControlsCreated |
サーバー コントロールの子コントロールが作成されたかどうかを示す値を取得します。Gets a value that indicates whether the server control's child controls have been created. (継承元 Control) |
ClientID |
ASP.NET によって生成される HTML マークアップのコントロール ID を取得します。Gets the control ID for HTML markup that is generated by ASP.NET. (継承元 Control) |
ClientIDMode |
ClientID プロパティの値を生成するために使用されるアルゴリズムを取得または設定します。Gets or sets the algorithm that is used to generate the value of the ClientID property. (継承元 Control) |
ClientIDSeparator |
ClientID プロパティで使用される区切り記号を表す文字値を取得します。Gets a character value representing the separator character used in the ClientID property. (継承元 Control) |
Context |
現在の Web 要求に対するサーバー コントロールに関連付けられている HttpContext オブジェクトを取得します。Gets the HttpContext object associated with the server control for the current Web request. (継承元 Control) |
Controls |
ControlCollection 内の子コントロールを表す CompositeControl オブジェクトを取得します。Gets a ControlCollection object that represents the child controls in a CompositeControl. (継承元 CompositeControl) |
ControlStyle |
Web サーバー コントロールのスタイルを取得します。Gets the style of the Web server control. このプロパティは、主にコントロールの開発者によって使用されます。This property is used primarily by control developers. (継承元 WebControl) |
ControlStyleCreated |
Style オブジェクトが ControlStyle プロパティに対して作成されたかどうかを示す値を取得します。Gets a value indicating whether a Style object has been created for the ControlStyle property. このプロパティは、主にコントロールの開発者によって使用されます。This property is primarily used by control developers. (継承元 WebControl) |
CssClass |
クライアントで Web サーバー コントロールによって表示されるカスケード スタイル シート (CSS: Cascading Style Sheet) クラスを取得または設定します。Gets or sets the Cascading Style Sheet (CSS) class rendered by the Web server control on the client. (継承元 WebControl) |
CurrentNodeStyle |
現在のノードの表示テキストに使用されるスタイルを取得します。Gets the style used for the display text for the current node. |
CurrentNodeTemplate |
現在表示されているページを表すサイト ナビゲーション パスのノードに使用するコントロール テンプレートを取得または設定します。Gets or sets a control template to use for the node of a site navigation path that represents the currently displayed page. |
DataItemContainer |
名前付けコンテナーが IDataItemContainer を実装している場合、名前付けコンテナーへの参照を取得します。Gets a reference to the naming container if the naming container implements IDataItemContainer. (継承元 Control) |
DataKeysContainer |
名前付けコンテナーが IDataKeysControl を実装している場合、名前付けコンテナーへの参照を取得します。Gets a reference to the naming container if the naming container implements IDataKeysControl. (継承元 Control) |
DesignMode |
コントロールがデザイン サーフェイスで使用されているかどうかを示す値を取得します。Gets a value indicating whether a control is being used on a design surface. (継承元 Control) |
Enabled |
Web サーバー コントロールを有効にするかどうかを示す値を取得または設定します。Gets or sets a value indicating whether the Web server control is enabled. (継承元 WebControl) |
EnableTheming |
テーマがこのコントロールに適用されるかどうかを示す値を取得または設定します。Gets or sets a value indicating whether themes apply to this control. (継承元 WebControl) |
EnableViewState |
要求元クライアントに対して、サーバー コントロールがそのビュー状態と、そこに含まれる任意の子のコントロールのビュー状態を保持するかどうかを示す値を取得または設定します。Gets or sets a value indicating whether the server control persists its view state, and the view state of any child controls it contains, to the requesting client. (継承元 Control) |
Events |
コントロールのイベント ハンドラー デリゲートのリストを取得します。Gets a list of event handler delegates for the control. このプロパティは読み取り専用です。This property is read-only. (継承元 Control) |
Font |
Web サーバー コントロールに関連付けられたフォント プロパティを取得します。Gets the font properties associated with the Web server control. (継承元 WebControl) |
ForeColor |
Web サーバー コントロールの前景色 (通常はテキストの色) を取得または設定します。Gets or sets the foreground color (typically the color of the text) of the Web server control. (継承元 WebControl) |
HasAttributes |
コントロールに属性セットがあるかどうかを示す値を取得します。Gets a value indicating whether the control has attributes set. (継承元 WebControl) |
HasChildViewState |
現在のサーバー コントロールの子コントロールが、保存されたビューステートの設定を持っているかどうかを示す値を取得します。Gets a value indicating whether the current server control's child controls have any saved view-state settings. (継承元 Control) |
Height |
Web サーバー コントロールの高さを取得または設定します。Gets or sets the height of the Web server control. (継承元 WebControl) |
ID |
サーバー コントロールに割り当てられたプログラム ID を取得または設定します。Gets or sets the programmatic identifier assigned to the server control. (継承元 Control) |
IdSeparator |
コントロール ID を区別するために使用する文字を取得します。Gets the character used to separate control identifiers. (継承元 Control) |
IsChildControlStateCleared |
このコントロールに含まれているコントロールに、コントロールの状態が設定されているかどうかを示す値を取得します。Gets a value indicating whether controls contained within this control have control state. (継承元 Control) |
IsEnabled |
コントロールが有効かどうかを示す値を取得します。Gets a value indicating whether the control is enabled. (継承元 WebControl) |
IsTrackingViewState |
サーバー コントロールがビューステートの変更を保存しているかどうかを示す値を取得します。Gets a value that indicates whether the server control is saving changes to its view state. (継承元 Control) |
IsViewStateEnabled |
このコントロールでビューステートが有効かどうかを示す値を取得します。Gets a value indicating whether view state is enabled for this control. (継承元 Control) |
LoadViewStateByID |
コントロールがインデックスではなく ID によりビューステートの読み込みを行うかどうかを示す値を取得します。Gets a value indicating whether the control participates in loading its view state by ID instead of index. (継承元 Control) |
NamingContainer |
同じ ID プロパティ値を持つ複数のサーバー コントロールを区別するための一意の名前空間を作成する、サーバー コントロールの名前付けコンテナーへの参照を取得します。Gets a reference to the server control's naming container, which creates a unique namespace for differentiating between server controls with the same ID property value. (継承元 Control) |
NodeStyle |
サイト ナビゲーション パスのすべてのノードで表示テキストに使用するスタイルを取得します。Gets the style used for the display text for all nodes in the site navigation path. |
NodeTemplate |
サイト ナビゲーション パスのすべての機能ノードに使用するコントロール テンプレートを取得まはた設定します。Gets or sets a control template to use for all functional nodes of a site navigation path. |
Page |
サーバー コントロールを含んでいる Page インスタンスへの参照を取得します。Gets a reference to the Page instance that contains the server control. (継承元 Control) |
Parent |
ページ コントロールの階層構造における、サーバー コントロールの親コントロールへの参照を取得します。Gets a reference to the server control's parent control in the page control hierarchy. (継承元 Control) |
ParentLevelsDisplayed |
現在表示されているノードを基準に、コントロールが表示する親ノードのレベルの数を取得または設定します。Gets or sets the number of levels of parent nodes the control displays, relative to the currently displayed node. |
PathDirection |
ナビゲーション パスの各ノードが表示される順序を取得または設定します。Gets or sets the order that the navigation path nodes are rendered in. |
PathSeparator |
表示されたナビゲーション パスの各 SiteMapPath ノードを区切る文字列を取得または設定します。Gets or sets the string that delimits SiteMapPath nodes in the rendered navigation path. |
PathSeparatorStyle |
PathSeparator の文字列に使用するスタイルを取得します。Gets the style used for the PathSeparator string. |
PathSeparatorTemplate |
サイト ナビゲーション パスのパス デリミターに使用するコントロール テンプレートを取得または設定します。Gets or sets a control template to use for the path delimiter of a site navigation path. |
Provider |
Web サーバー コントロールに関連付けられた SiteMapProvider を取得または設定します。Gets or sets a SiteMapProvider that is associated with the Web server control. |
RenderCurrentNodeAsLink |
現在表示されているページを表すサイト ナビゲーション ノードがハイパーリンクとして表示されるかどうかを示します。Indicates whether the site navigation node that represents the currently displayed page is rendered as a hyperlink. |
RenderingCompatibility |
レンダリングされる HTML と互換性がある ASP.NET のバージョンを表す値を取得します。Gets a value that specifies the ASP.NET version that rendered HTML will be compatible with. (継承元 Control) |
RootNodeStyle |
ルート ノードの表示テキストのスタイルを取得します。Gets the style for the root node display text. |
RootNodeTemplate |
サイト ナビゲーション パスのルート ノードに使用するコントロール テンプレートを取得または設定します。Gets or sets a control template to use for the root node of a site navigation path. |
ShowToolTips |
SiteMapPath コントロールが、ハイパーリンクのナビゲーション ノードに追加のハイパーリンク属性を書き込むかどうかを示す値を取得または設定します。Gets or sets a value indicating whether the SiteMapPath control writes an additional hyperlink attribute for hyperlinked navigation nodes. クライアントのサポートによっては、追加の属性セットを設定したハイパーリンクの上にマウスを移動するとツールヒントが表示されます。Depending on client support, when a mouse hovers over a hyperlink that has the additional attribute set, a ToolTip is displayed. |
Site |
デザイン サーフェイスに現在のコントロールを表示するときに、このコントロールをホストするコンテナーに関する情報を取得します。Gets information about the container that hosts the current control when rendered on a design surface. (継承元 Control) |
SiteMapProvider |
サイト ナビゲーション コントロールを表示するために使用する SiteMapProvider の名前を取得または設定します。Gets or sets the name of the SiteMapProvider used to render the site navigation control. |
SkinID |
コントロールに適用するスキンを取得または設定します。Gets or sets the skin to apply to the control. (継承元 WebControl) |
SkipLinkText |
コントロールのコンテンツをスキップするスクリーン リーダー用の代替テキスト表示に使用する値を取得または設定します。Gets or sets a value that is used to render alternate text for screen readers to skip the control's content. |
Style |
Web サーバー コントロールの外側のタグにスタイル属性として表示されるテキスト属性のコレクションを取得します。Gets a collection of text attributes that will be rendered as a style attribute on the outer tag of the Web server control. (継承元 WebControl) |
SupportsDisabledAttribute |
コントロールの |
TabIndex |
Web サーバー コントロールのタブ インデックスを取得または設定します。Gets or sets the tab index of the Web server control. (継承元 WebControl) |
TagKey |
この Web サーバー コントロールに対応する HtmlTextWriterTag 値を取得します。Gets the HtmlTextWriterTag value that corresponds to this Web server control. このプロパティは、主にコントロールの開発者によって使用されます。This property is used primarily by control developers. (継承元 WebControl) |
TagName |
コントロール タグの名前を取得します。Gets the name of the control tag. このプロパティは、主にコントロールの開発者によって使用されます。This property is used primarily by control developers. (継承元 WebControl) |
TemplateControl |
このコントロールを格納しているテンプレートへの参照を取得または設定します。Gets or sets a reference to the template that contains this control. (継承元 Control) |
TemplateSourceDirectory |
現在のサーバー コントロールを格納している Page または UserControl の仮想ディレクトリを取得します。Gets the virtual directory of the Page or UserControl that contains the current server control. (継承元 Control) |
ToolTip |
マウス ポインターが Web サーバー コントロールの上を移動したときに表示されるテキストを取得または設定します。Gets or sets the text displayed when the mouse pointer hovers over the Web server control. (継承元 WebControl) |
UniqueID |
階層構造で修飾されたサーバー コントロールの一意の ID を取得します。Gets the unique, hierarchically qualified identifier for the server control. (継承元 Control) |
ValidateRequestMode |
ブラウザーからのクライアント入力の安全性をコントロールで調べるかどうかを示す値を取得または設定します。Gets or sets a value that indicates whether the control checks client input from the browser for potentially dangerous values. (継承元 Control) |
ViewState |
同一のページに対する複数の要求にわたって、サーバー コントロールのビューステートを保存し、復元できるようにする状態情報のディクショナリを取得します。Gets a dictionary of state information that allows you to save and restore the view state of a server control across multiple requests for the same page. (継承元 Control) |
ViewStateIgnoresCase |
StateBag オブジェクトが大文字小文字を区別しないかどうかを示す値を取得します。Gets a value that indicates whether the StateBag object is case-insensitive. (継承元 Control) |
ViewStateMode |
このコントロールのビューステート モードを取得または設定します。Gets or sets the view-state mode of this control. (継承元 Control) |
Visible |
サーバー コントロールがページ上の UI としてレンダリングされているかどうかを示す値を取得または設定します。Gets or sets a value that indicates whether a server control is rendered as UI on the page. (継承元 Control) |
Width |
Web サーバー コントロールの幅を取得または設定します。Gets or sets the width of the Web server control. (継承元 WebControl) |
メソッド
AddAttributesToRender(HtmlTextWriter) |
指定した HtmlTextWriterTag に表示する必要のある HTML 属性およびスタイルを追加します。Adds HTML attributes and styles that need to be rendered to the specified HtmlTextWriterTag. このメソッドは、主にコントロールの開発者によって使用されます。This method is used primarily by control developers. (継承元 WebControl) |
AddedControl(Control, Int32) |
子コントロールが Control オブジェクトの Controls コレクションに追加された後に呼び出されます。Called after a child control is added to the Controls collection of the Control object. (継承元 Control) |
AddParsedSubObject(Object) |
XML または HTML のいずれかの要素が解析されたことをサーバー コントロールに通知し、サーバー コントロールの ControlCollection オブジェクトに要素を追加します。Notifies the server control that an element, either XML or HTML, was parsed, and adds the element to the server control's ControlCollection object. (継承元 Control) |
ApplyStyle(Style) |
指定したスタイルの空白以外の要素を Web コントロールにコピーして、コントロールの既存のスタイル要素を上書きします。Copies any nonblank elements of the specified style to the Web control, overwriting any existing style elements of the control. このメソッドは、主にコントロールの開発者によって使用されます。This method is primarily used by control developers. (継承元 WebControl) |
ApplyStyleSheetSkin(Page) |
ページのスタイル シートに定義されたスタイル プロパティをコントロールに適用します。Applies the style properties defined in the page style sheet to the control. (継承元 Control) |
BeginRenderTracing(TextWriter, Object) |
レンダリング データのデザイン時のトレースを開始します。Begins design-time tracing of rendering data. (継承元 Control) |
BuildProfileTree(String, Boolean) |
ページのトレースが有効な場合、サーバー コントロールに関する情報を収集し、これを表示するために Trace プロパティに渡します。Gathers information about the server control and delivers it to the Trace property to be displayed when tracing is enabled for the page. (継承元 Control) |
ClearCachedClientID() |
キャッシュされた ClientID 値を |
ClearChildControlState() |
サーバー コントロールのすべての子コントロールについて、コントロールの状態情報を削除します。Deletes the control-state information for the server control's child controls. (継承元 Control) |
ClearChildState() |
サーバー コントロールのすべての子コントロールのビューステート情報およびコントロールの状態情報を削除します。Deletes the view-state and control-state information for all the server control's child controls. (継承元 Control) |
ClearChildViewState() |
サーバー コントロールのすべての子コントロールのビューステート情報を削除します。Deletes the view-state information for all the server control's child controls. (継承元 Control) |
ClearEffectiveClientIDMode() |
現在のコントロール インスタンスおよびすべての子コントロールの ClientIDMode プロパティを Inherit に設定します。Sets the ClientIDMode property of the current control instance and of any child controls to Inherit. (継承元 Control) |
CopyBaseAttributes(WebControl) |
指定した Web サーバー コントロールから、Style オブジェクトでカプセル化されていないプロパティをこのメソッドの呼び出し元の Web サーバー コントロールにコピーします。Copies the properties not encapsulated by the Style object from the specified Web server control to the Web server control that this method is called from. このメソッドは、主にコントロールの開発者によって使用されます。This method is used primarily by control developers. (継承元 WebControl) |
CreateChildControls() |
現在の子コントロールのコレクションを消去し、CreateControlHierarchy() メソッドを呼び出して再構築します。Clears the current child controls collection, and rebuilds it by calling the CreateControlHierarchy() method. |
CreateControlCollection() |
サーバー コントロールの子コントロール (リテラルとサーバーの両方) を保持する新しい ControlCollection オブジェクトを作成します。Creates a new ControlCollection object to hold the child controls (both literal and server) of the server control. (継承元 Control) |
CreateControlHierarchy() |
SiteMapProvider によって提供されるサイト マップ構造を調べ、機能ノードに定義されたスタイルとテンプレートに基づいて子コントロールのコレクションを構築します。Examines the site map structure provided by the SiteMapProvider and builds a child controls collection based on the styles and templates defined for the functional nodes. |
CreateControlStyle() |
WebControl クラスで、すべてのスタイル関連プロパティを実装するために内部的に使用されるスタイル オブジェクトを作成します。Creates the style object that is used internally by the WebControl class to implement all style related properties. このメソッドは、主にコントロールの開発者によって使用されます。This method is used primarily by control developers. (継承元 WebControl) |
DataBind() |
データ ソースを SiteMapPath コントロールとその子コントロールにバインドします。Binds a data source to the SiteMapPath control and its child controls. |
DataBind(Boolean) |
DataBinding イベントを発生させるオプションを指定して、呼び出されたサーバー コントロールとそのすべての子コントロールにデータ ソースをバインドします。Binds a data source to the invoked server control and all its child controls with an option to raise the DataBinding event. (継承元 Control) |
DataBindChildren() |
データ ソースをサーバー コントロールの子コントロールにバインドします。Binds a data source to the server control's child controls. (継承元 Control) |
Dispose() |
サーバー コントロールが、メモリから解放される前に最終的なクリーンアップを実行できるようにします。Enables a server control to perform final clean up before it is released from memory. (継承元 Control) |
EndRenderTracing(TextWriter, Object) |
レンダリング データのデザイン時のトレースを終了します。Ends design-time tracing of rendering data. (継承元 Control) |
EnsureChildControls() |
サーバー コントロールに子コントロールが含まれているかどうかを確認します。Determines whether the server control contains child controls. 含まれていない場合、子コントロールを作成します。If it does not, it creates child controls. (継承元 Control) |
EnsureID() |
ID が割り当てられていないコントロールの ID を作成します。Creates an identifier for controls that do not have an identifier assigned. (継承元 Control) |
Equals(Object) |
指定されたオブジェクトが現在のオブジェクトと等しいかどうかを判断します。Determines whether the specified object is equal to the current object. (継承元 Object) |
FindControl(String) |
指定した |
FindControl(String, Int32) |
指定した |
Focus() |
コントロールに入力フォーカスを設定します。Sets input focus to a control. (継承元 Control) |
GetDesignModeState() |
コントロールのデザイン時データを取得します。Gets design-time data for a control. (継承元 Control) |
GetHashCode() |
既定のハッシュ関数として機能します。Serves as the default hash function. (継承元 Object) |
GetRouteUrl(Object) |
ルート パラメーターのセットに対応する URL を取得します。Gets the URL that corresponds to a set of route parameters. (継承元 Control) |
GetRouteUrl(RouteValueDictionary) |
ルート パラメーターのセットに対応する URL を取得します。Gets the URL that corresponds to a set of route parameters. (継承元 Control) |
GetRouteUrl(String, Object) |
ルート パラメーターのセットおよびルート名に対応する URL を取得します。Gets the URL that corresponds to a set of route parameters and a route name. (継承元 Control) |
GetRouteUrl(String, RouteValueDictionary) |
ルート パラメーターのセットおよびルート名に対応する URL を取得します。Gets the URL that corresponds to a set of route parameters and a route name. (継承元 Control) |
GetType() |
現在のインスタンスの Type を取得します。Gets the Type of the current instance. (継承元 Object) |
GetUniqueIDRelativeTo(Control) |
指定されたコントロールの UniqueID プロパティのプレフィックス部分を返します。Returns the prefixed portion of the UniqueID property of the specified control. (継承元 Control) |
HasControls() |
サーバー コントロールに子コントロールが含まれているかどうかを確認します。Determines if the server control contains any child controls. (継承元 Control) |
HasEvents() |
コントロールまたは子コントロールに対してイベントが登録されているかどうかを示す値を返します。Returns a value indicating whether events are registered for the control or any child controls. (継承元 Control) |
InitializeItem(SiteMapNodeItem) |
SiteMapNodeItem を表す Web サーバー コントロールの SiteMapNode に、ノードの機能およびノードに指定したテンプレートとスタイルに基づいて一連の子コントロールを読み込みます。Populates a SiteMapNodeItem, which is a Web server control that represents a SiteMapNode, with a set of child controls based on the node's function and the specified templates and styles for the node. |
IsLiteralContent() |
サーバー コントロールがリテラルな内容だけを保持しているかどうかを決定します。Determines if the server control holds only literal content. (継承元 Control) |
LoadControlState(Object) |
SaveControlState() メソッドによって保存された前回のページ要求からコントロールの状態情報を復元します。Restores control-state information from a previous page request that was saved by the SaveControlState() method. (継承元 Control) |
LoadViewState(Object) |
SaveViewState() メソッドで保存された前の要求からビュー ステート情報を復元します。Restores view-state information from a previous request that was saved with the SaveViewState() method. |
MapPathSecure(String) |
仮想パス (絶対パスまたは相対パス) の割り当て先の物理パスを取得します。Retrieves the physical path that a virtual path, either absolute or relative, maps to. (継承元 Control) |
MemberwiseClone() |
現在の Object の簡易コピーを作成します。Creates a shallow copy of the current Object. (継承元 Object) |
MergeStyle(Style) |
指定したスタイルの空白以外の要素を Web コントロールにコピーしますが、コントロールの既存のスタイル要素は上書きしません。Copies any nonblank elements of the specified style to the Web control, but will not overwrite any existing style elements of the control. このメソッドは、主にコントロールの開発者によって使用されます。This method is used primarily by control developers. (継承元 WebControl) |
OnBubbleEvent(Object, EventArgs) |
サーバー コントロールのイベントをページの UI サーバー コントロールの階層構造に渡すかどうかを決定します。Determines whether the event for the server control is passed up the page's UI server control hierarchy. (継承元 Control) |
OnDataBinding(EventArgs) |
OnDataBinding(EventArgs) クラスの CompositeControl をオーバーライドし、DataBinding イベントを発生させます。Overrides the OnDataBinding(EventArgs) method of the CompositeControl class and raises the DataBinding event. |
OnInit(EventArgs) |
Init イベントを発生させます。Raises the Init event. (継承元 Control) |
OnItemCreated(SiteMapNodeItemEventArgs) |
ItemCreated コントロールの SiteMapPath イベントを発生させます。Raises the ItemCreated event of the SiteMapPath control. |
OnItemDataBound(SiteMapNodeItemEventArgs) |
ItemDataBound コントロールの SiteMapPath イベントを発生させます。Raises the ItemDataBound event of the SiteMapPath control. |
OnLoad(EventArgs) |
Load イベントを発生させます。Raises the Load event. (継承元 Control) |
OnPreRender(EventArgs) |
PreRender イベントを発生させます。Raises the PreRender event. (継承元 Control) |
OnUnload(EventArgs) |
Unload イベントを発生させます。Raises the Unload event. (継承元 Control) |
OpenFile(String) |
ファイルの読み込みで使用される Stream を取得します。Gets a Stream used to read a file. (継承元 Control) |
RaiseBubbleEvent(Object, EventArgs) |
イベントのソースおよびその情報をコントロールの親に割り当てます。Assigns any sources of the event and its information to the control's parent. (継承元 Control) |
RecreateChildControls() |
CompositeControl から派生したコントロール内に子コントロールを再作成します。Recreates the child controls in a control derived from CompositeControl. (継承元 CompositeControl) |
RemovedControl(Control) |
Control オブジェクトの Controls コレクションから子コントロールが削除された後に呼び出されます。Called after a child control is removed from the Controls collection of the Control object. (継承元 Control) |
Render(HtmlTextWriter) |
クライアントに表示するために、指定した CompositeControl オブジェクトに HtmlTextWriter の内容を書き込みます。Writes the CompositeControl content to the specified HtmlTextWriter object, for display on the client. |
RenderBeginTag(HtmlTextWriter) |
コントロールの HTML 開始タグを指定したライターに表示します。Renders the HTML opening tag of the control to the specified writer. このメソッドは、主にコントロールの開発者によって使用されます。This method is used primarily by control developers. (継承元 WebControl) |
RenderChildren(HtmlTextWriter) |
提供された HtmlTextWriter オブジェクトに対してサーバー コントロールの子のコンテンツを出力すると、クライアントで表示されるコンテンツが記述されます。Outputs the content of a server control's children to a provided HtmlTextWriter object, which writes the content to be rendered on the client. (継承元 Control) |
RenderContents(HtmlTextWriter) |
SiteMapPath コントロールの各ノードを表示します。Renders the nodes in the SiteMapPath control. |
RenderControl(HtmlTextWriter) |
指定の HtmlTextWriter オブジェクトにサーバー コントロールの内容を出力し、トレースが有効である場合はコントロールに関するトレース情報を保存します。Outputs server control content to a provided HtmlTextWriter object and stores tracing information about the control if tracing is enabled. (継承元 Control) |
RenderControl(HtmlTextWriter, ControlAdapter) |
指定した ControlAdapter オブジェクトを使用して、指定した HtmlTextWriter オブジェクトにサーバー コントロールの内容を出力します。Outputs server control content to a provided HtmlTextWriter object using a provided ControlAdapter object. (継承元 Control) |
RenderEndTag(HtmlTextWriter) |
コントロールの HTML 終了タグを指定したライターに表示します。Renders the HTML closing tag of the control into the specified writer. このメソッドは、主にコントロールの開発者によって使用されます。This method is used primarily by control developers. (継承元 WebControl) |
ResolveAdapter() |
指定したコントロールを表示するコントロール アダプターを取得します。Gets the control adapter responsible for rendering the specified control. (継承元 Control) |
ResolveClientUrl(String) |
ブラウザーで使用できる URL を取得します。Gets a URL that can be used by the browser. (継承元 Control) |
ResolveUrl(String) |
要求側クライアントで使用できる URL に変換します。Converts a URL into one that is usable on the requesting client. (継承元 Control) |
SaveControlState() |
ページがサーバーにポスト バックされた時間以降に発生したすべてのサーバー コントロール状態の変化を保存します。Saves any server control state changes that have occurred since the time the page was posted back to the server. (継承元 Control) |
SaveViewState() |
SiteMapPath コントロールのビューステートに対する変更を保存します。Saves changes to view state for the SiteMapPath control. |
SetDesignModeState(IDictionary) |
コントロールのデザイン時データを設定します。Sets design-time data for a control. (継承元 Control) |
SetRenderMethodDelegate(RenderMethod) |
サーバー コントロールとその内容を親コントロールに表示するイベント ハンドラー デリゲートを割り当てます。Assigns an event handler delegate to render the server control and its content into its parent control. (継承元 Control) |
SetTraceData(Object, Object) |
トレース データ キーとトレース データ値を使用して、レンダリング データのデザイン時トレースのトレース データを設定します。Sets trace data for design-time tracing of rendering data, using the trace data key and the trace data value. (継承元 Control) |
SetTraceData(Object, Object, Object) |
トレースされたオブジェクト、トレース データ キー、およびトレース データ値を使用して、レンダリング データのデザイン時トレースのトレース データを設定します。Sets trace data for design-time tracing of rendering data, using the traced object, the trace data key, and the trace data value. (継承元 Control) |
ToString() |
現在のオブジェクトを表す文字列を返します。Returns a string that represents the current object. (継承元 Object) |
TrackViewState() |
SiteMapPath コントロールのビューステートの変更を追跡します。Tracks changes to the SiteMapPath control's view state. |
イベント
DataBinding |
サーバー コントロールがデータ ソースに連結すると発生します。Occurs when the server control binds to a data source. (継承元 Control) |
Disposed |
サーバー コントロールがメモリから解放されると発生します。これは、ASP.NET ページが要求されている場合のサーバー コントロールの有効期間における最終段階です。Occurs when a server control is released from memory, which is the last stage of the server control lifecycle when an ASP.NET page is requested. (継承元 Control) |
Init |
サーバー コントロールが初期化されると発生します。これは、サーバー コントロールの有効期間における最初の手順です。Occurs when the server control is initialized, which is the first step in its lifecycle. (継承元 Control) |
ItemCreated |
SiteMapNodeItem によって SiteMapPath が作成され、その対応する SiteMapNode に関連付けられたときに発生します。Occurs when a SiteMapNodeItem is created by the SiteMapPath and is associated with its corresponding SiteMapNode. このイベントは、OnItemCreated(SiteMapNodeItemEventArgs) メソッドによって発生します。This event is raised by the OnItemCreated(SiteMapNodeItemEventArgs) method. |
ItemDataBound |
SiteMapNodeItem によって、SiteMapNode がその基になる SiteMapPath データにバインドされた後に発生します。Occurs after a SiteMapNodeItem has been bound to its underlying SiteMapNode data by the SiteMapPath. このイベントは、OnItemDataBound(SiteMapNodeItemEventArgs) メソッドによって発生します。This event is raised by the OnItemDataBound(SiteMapNodeItemEventArgs) method. |
Load |
サーバー コントロールが Page オブジェクトに読み込まれると発生します。Occurs when the server control is loaded into the Page object. (継承元 Control) |
PreRender |
Control オブジェクトの読み込み後、表示を開始する前に発生します。Occurs after the Control object is loaded but prior to rendering. (継承元 Control) |
Unload |
サーバー コントロールがメモリからアンロードされると発生します。Occurs when the server control is unloaded from memory. (継承元 Control) |
明示的なインターフェイスの実装
IAttributeAccessor.GetAttribute(String) |
指定された名前の Web コントロールの属性を取得します。Gets an attribute of the Web control with the specified name. (継承元 WebControl) |
IAttributeAccessor.SetAttribute(String, String) |
Web コントロールの属性を指定された名前と値に設定します。Sets an attribute of the Web control to the specified name and value. (継承元 WebControl) |
ICompositeControlDesignerAccessor.RecreateChildControls() |
デザイナーが、デザイン時環境で子コントロールの複合コントロールのコレクションを再作成できるようにします。Enables a designer to recreate the composite control's collection of child controls in the design-time environment. (継承元 CompositeControl) |
IControlBuilderAccessor.ControlBuilder |
このメンバーの詳細については、「ControlBuilder」をご覧ください。For a description of this member, see ControlBuilder. (継承元 Control) |
IControlDesignerAccessor.GetDesignModeState() |
このメンバーの詳細については、「GetDesignModeState()」をご覧ください。For a description of this member, see GetDesignModeState(). (継承元 Control) |
IControlDesignerAccessor.SetDesignModeState(IDictionary) |
このメンバーの詳細については、「SetDesignModeState(IDictionary)」をご覧ください。For a description of this member, see SetDesignModeState(IDictionary). (継承元 Control) |
IControlDesignerAccessor.SetOwnerControl(Control) |
このメンバーの詳細については、「SetOwnerControl(Control)」をご覧ください。For a description of this member, see SetOwnerControl(Control). (継承元 Control) |
IControlDesignerAccessor.UserData |
このメンバーの詳細については、「UserData」をご覧ください。For a description of this member, see UserData. (継承元 Control) |
IDataBindingsAccessor.DataBindings |
このメンバーの詳細については、「DataBindings」をご覧ください。For a description of this member, see DataBindings. (継承元 Control) |
IDataBindingsAccessor.HasDataBindings |
このメンバーの詳細については、「HasDataBindings」をご覧ください。For a description of this member, see HasDataBindings. (継承元 Control) |
IExpressionsAccessor.Expressions |
このメンバーの詳細については、「Expressions」をご覧ください。For a description of this member, see Expressions. (継承元 Control) |
IExpressionsAccessor.HasExpressions |
このメンバーの詳細については、「HasExpressions」をご覧ください。For a description of this member, see HasExpressions. (継承元 Control) |
IParserAccessor.AddParsedSubObject(Object) |
このメンバーの詳細については、「AddParsedSubObject(Object)」をご覧ください。For a description of this member, see AddParsedSubObject(Object). (継承元 Control) |
拡張メソッド
FindDataSourceControl(Control) |
指定されたコントロールのデータ コントロールに関連付けられているデータ ソースを返します。Returns the data source that is associated with the data control for the specified control. |
FindFieldTemplate(Control, String) |
指定されたコントロールの名前付けコンテナー内にある、指定された列のフィールド テンプレートを返します。Returns the field template for the specified column in the specified control's naming container. |
FindMetaTable(Control) |
格納しているデータ コントロールのメタテーブル オブジェクトを返します。Returns the metatable object for the containing data control. |
GetDefaultValues(INamingContainer) |
指定されたデータ コントロールの既定値のコレクションを取得します。Gets the collection of the default values for the specified data control. |
GetMetaTable(INamingContainer) |
指定されたデータ コントロールのテーブル メタデータを取得します。Gets the table metadata for the specified data control. |
SetMetaTable(INamingContainer, MetaTable) |
指定されたデータ コントロールのテーブル メタデータを設定します。Sets the table metadata for the specified data control. |
SetMetaTable(INamingContainer, MetaTable, IDictionary<String,Object>) |
指定したデータ コントロールのテーブル メタデータおよび既定値のマッピングを設定します。Sets the table metadata and default value mapping for the specified data control. |
SetMetaTable(INamingContainer, MetaTable, Object) |
指定したデータ コントロールのテーブル メタデータおよび既定値のマッピングを設定します。Sets the table metadata and default value mapping for the specified data control. |
TryGetMetaTable(INamingContainer, MetaTable) |
テーブル メタデータが使用できるかどうかを判断します。Determines whether table metadata is available. |
EnableDynamicData(INamingContainer, Type) |
指定されたデータ コントロールの動的データの動作を有効にします。Enables Dynamic Data behavior for the specified data control. |
EnableDynamicData(INamingContainer, Type, IDictionary<String,Object>) |
指定されたデータ コントロールの動的データの動作を有効にします。Enables Dynamic Data behavior for the specified data control. |
EnableDynamicData(INamingContainer, Type, Object) |
指定されたデータ コントロールの動的データの動作を有効にします。Enables Dynamic Data behavior for the specified data control. |