次の方法で共有


View.Name プロパティ

定義

ビューの名前を取得します。

public:
 property System::String ^ Name { System::String ^ get(); };
public string Name { get; }
member this.Name : string
Public ReadOnly Property Name As String

プロパティ値

次の例では、 オブジェクトの Name プロパティを ViewObject 使用して、ユーザーが切り替えたビューを決定します。 "Archive Customer" ビューに切り替えた場合、フォームの基になる XML ドキュメントに Notes の値が追加されます。

if (thisXDocument.View.<span class="label">Name</span> == @"Archive Customer")
{
 IXMLDOMNode notes = thisXDocument.DOM.selectSingleNode(@"/Customers/CustomerInfo/Notes");
 IXMLDOMNode div = thisXDocument.DOM.createNode(1, "div", @"http://www.w3.org/1999/xhtml");

 div.text = "Note recorded " + thisXDocument.Util.Date.Now().ToString();
 notes.appendChild(div);
}

注釈

既定のビューを決定するには、 IsDefault オブジェクトの プロパティを ViewInfoObject 使用します。

適用対象