共用方式為


Selection.SelectionCount 屬性

取得選取範圍中的物件數目。

命名空間:  Microsoft.Windows.Design.Interaction
組件:  Microsoft.Windows.Design.Interaction (在 Microsoft.Windows.Design.Interaction.dll 中)

語法

'宣告
Public ReadOnly Property SelectionCount As Integer
    Get
public int SelectionCount { get; }
public:
property int SelectionCount {
    int get ();
}
member SelectionCount : int
function get SelectionCount () : int

屬性值

型別:System.Int32
選取範圍中的物件數目。

.NET Framework 安全性

請參閱

參考

Selection 類別

Microsoft.Windows.Design.Interaction 命名空間

SelectionCommands

SelectionOperations

SelectionTool

EditingContext

其他資源

WPF 設計工具擴充性架構