BindingNavigator.CountItemFormat 屬性

定義

取得或設定用來將顯示於 CountItem 控制項中的資訊格式化的字串。

public:
 property System::String ^ CountItemFormat { System::String ^ get(); void set(System::String ^ value); };
public string CountItemFormat { get; set; }
member this.CountItemFormat : string with get, set
Public Property CountItemFormat As String

屬性值

String

用來將項目計數格式化的 String 格式。 預設值為 「of {0} 」 的字串。

備註

控制項 CountItem 是 , ToolStripLabel 會顯示 中的 BindingSource 專案總數。 屬性 CountItemFormat 是用來格式化計數的格式字串。

如需格式字串的詳細資訊,請參閱 String.Format(String, Object) 方法。

適用於

另請參閱