バージョン

Location プロパティ (TextEditorTool)

ツールの場所を示す列挙体を返します。(読み取り専用)
シンタックス
'宣言
 
Public ReadOnly Property Location As ToolLocation
public ToolLocation Location {get;}
解説

可能なツール配置は Ribbon、Menu、QuickAccessToolbar、ApplicationMenu、ApplicationMenuFooterToolbar、および ApplicationMenuRecentItems です。

使用例
' Create TextEditorTool 
Dim textEditorTool As New TextEditorTool() 
textEditorTool.Id = "textEditor" 
textEditorTool.Caption = "textEditor" 

' Add to QAT 
xamRibbon.QuickAccessToolbar.Items.Add(New QatPlaceholderTool("textEditor", QatPlaceholderToolType.Tool)) 

Debug.Write("textEditorTool.Location" + textEditorTool.Location)
// Create TextEditorTool
TextEditorTool textEditorTool = new TextEditorTool();
textEditorTool.Id = "textEditor";
textEditorTool.Caption = "textEditor";

// Add to QAT
xamRibbon.QuickAccessToolbar.Items.Add(new QatPlaceholderTool("textEditor", QatPlaceholderToolType.Tool));

Debug.Write("textEditorTool.Location" + textEditorTool.Location);
参照