次の方法で共有


DocumentBase.UserControl プロパティ

定義

その文書またはアプリケーションを作成または開いたのがユーザーであるかどうかを示す値を取得または設定します。

public:
 property bool UserControl { bool get(); void set(bool value); };
public bool UserControl { get; set; }
member this.UserControl : bool with get, set
Public Property UserControl As Boolean

プロパティ値

true ドキュメントまたはアプリケーションがユーザーによって作成または開かれた場合。 false ドキュメントまたはアプリケーションが、メソッドまたは VBA を使用して別の Microsoft Office アプリケーションからプログラムで Microsoft.Office.Interop.Word.Documents.Open(System.Object@,System.Object@,System.Object@,System.Object@,System.Object@,System.Object@,System.Object@,System.Object@,System.Object@,System.Object@,System.Object@,System.Object@,System.Object@,System.Object@,System.Object@,System.Object@) 作成または開かれた場合。Interaction.CreateObject または VBA。Interaction.GetObject メソッド。

注釈

Microsoft Office Wordがユーザーに表示されている場合、または Word コードのカスタマイズ内から または オブジェクトの Application プロパティを使用UserControlする場合、このプロパティは常に を返しますtrueDocumentBase

適用対象