SiteMapPath.NodeTemplate プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > SiteMapPath.NodeTemplate プロパティの意味・解説 

SiteMapPath.NodeTemplate プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

サイト ナビゲーション パスすべての機能ノード使用するコントロール テンプレート取得まはた設定します

名前空間: System.Web.UI.WebControls
アセンブリ: System.Web (system.web.dll 内)
構文構文

<TemplateContainerAttribute(GetType(SiteMapNodeItem))> _
Public Overridable Property
 NodeTemplate As ITemplate
Dim instance As SiteMapPath
Dim value As ITemplate

value = instance.NodeTemplate

instance.NodeTemplate = value
[TemplateContainerAttribute(typeof(SiteMapNodeItem))] 
public virtual ITemplate NodeTemplate { get;
 set; }
[TemplateContainerAttribute(typeof(SiteMapNodeItem))] 
public:
virtual property ITemplate^ NodeTemplate {
    ITemplate^ get ();
    void set (ITemplate^ value);
}
/** @property */
public ITemplate get_NodeTemplate ()

/** @property */
public void set_NodeTemplate (ITemplate value)
public function get NodeTemplate
 () : ITemplate

public function set NodeTemplate
 (value : ITemplate)

プロパティ
ナビゲーション パスの各ノードカスタム コンテンツ表示する、InstantiateIn メソッド実装した ITemplate オブジェクト

解説解説
使用例使用例

NodeTemplate指定した場合に、ルート ノード現在のノード定義され特別なスタイル含めすべてのノード定義されスタイルオーバーライドする方法次のコード例示します

<%@ 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>
    <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.

                 A NodeStyle, RootNodeStyle, and CurrentNodeStyle
 are
                 all defined. However, so is a NodeTemplate. The
 template
                 is applied to all nodes, and
 the styles ignored. -->

            <asp:SiteMapPath ID="SiteMapPath1"
 runat="server"
                RenderCurrentNodeAsLink="true"
                NodeStyle-Font-Name="Franklin Gothic Medium"
                NodeStyle-Font-Underline="true"
                NodeStyle-Font-Bold="true"
                RootNodeStyle-Font-Name="Symbol"
                RootNodeStyle-Font-Bold="false"
                CurrentNodeStyle-Font-Name="Verdana"
                CurrentNodeStyle-Font-Size="10pt"
                CurrentNodeStyle-Font-Bold="true"
                CurrentNodeStyle-ForeColor="red"
                CurrentNodeStyle-Font-Underline="false"
                HoverNodeStyle-ForeColor="blue"
                HoverNodeStyle-Font-Underline="true">
                <NODETEMPLATE>
                        <asp:CheckBox id="CheckBox1"
 runat="server" Checked=true />
                        <asp:TextBox id="TextBox1"
 runat="server" Text="Declarative
 template" />
                </NODETEMPLATE>
            </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>
    <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.

                 A NodeStyle, RootNodeStyle, and CurrentNodeStyle are
                 all defined. However, so is a NodeTemplate. The template
                 is applied to all nodes, and the styles ignored. -->

            <asp:SiteMapPath ID="SiteMapPath1" runat="server"
                RenderCurrentNodeAsLink="true"
                NodeStyle-Font-Name="Franklin Gothic Medium"
                NodeStyle-Font-Underline="true"
                NodeStyle-Font-Bold="true"
                RootNodeStyle-Font-Name="Symbol"
                RootNodeStyle-Font-Bold="false"
                CurrentNodeStyle-Font-Name="Verdana"
                CurrentNodeStyle-Font-Size="10pt"
                CurrentNodeStyle-Font-Bold="true"
                CurrentNodeStyle-ForeColor="red"
                CurrentNodeStyle-Font-Underline="false"
                HoverNodeStyle-ForeColor="blue"
                HoverNodeStyle-Font-Underline="true">
                <NODETEMPLATE>
                        <asp:CheckBox id="CheckBox1" runat="server"
 Checked=true />
                        <asp:TextBox id="TextBox1" runat="server"
 Text="Declarative template" />
                </NODETEMPLATE>
            </asp:SiteMapPath>


        </FORM>
    </BODY>
</HTML>
<%@ Page Language="VJ#" %>
<!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>
    <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.

                 A NodeStyle, RootNodeStyle, and CurrentNodeStyle are
                 all defined. However, so is a NodeTemplate. The template
                 is applied to all nodes, and the styles ignored. -->

            <asp:SiteMapPath ID="SiteMapPath1" runat="server"
                RenderCurrentNodeAsLink="true"
                NodeStyle-Font-Name="Franklin Gothic Medium"
                NodeStyle-Font-Underline="true"
                NodeStyle-Font-Bold="true"
                RootNodeStyle-Font-Name="Symbol"
                RootNodeStyle-Font-Bold="false"
                CurrentNodeStyle-Font-Name="Verdana"
                CurrentNodeStyle-Font-Size="10pt"
                CurrentNodeStyle-Font-Bold="true"
                CurrentNodeStyle-ForeColor="red"
                CurrentNodeStyle-Font-Underline="false"
                HoverNodeStyle-ForeColor="blue"
                HoverNodeStyle-Font-Underline="true">
                <NODETEMPLATE>
                        <asp:CheckBox id="CheckBox1" runat="server"
 Checked=true />
                        <asp:TextBox id="TextBox1" runat="server"
 Text="Declarative template" />
                </NODETEMPLATE>
            </asp:SiteMapPath>


        </FORM>
    </BODY>
</HTML>
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


このページでは「.NET Framework クラス ライブラリ リファレンス」からSiteMapPath.NodeTemplate プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からSiteMapPath.NodeTemplate プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からSiteMapPath.NodeTemplate プロパティ を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「SiteMapPath.NodeTemplate プロパティ」の関連用語

SiteMapPath.NodeTemplate プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



SiteMapPath.NodeTemplate プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS