BindingList<T>.SortPropertyCore プロパティ
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
派生クラスで並べ替えが実装されている場合、リストの並べ替えに使用されるプロパティ記述子を取得します。実装されていない場合は null
を返します。
protected:
virtual property System::ComponentModel::PropertyDescriptor ^ SortPropertyCore { System::ComponentModel::PropertyDescriptor ^ get(); };
protected virtual System.ComponentModel.PropertyDescriptor SortPropertyCore { get; }
protected virtual System.ComponentModel.PropertyDescriptor? SortPropertyCore { get; }
member this.SortPropertyCore : System.ComponentModel.PropertyDescriptor
Protected Overridable ReadOnly Property SortPropertyCore As PropertyDescriptor
プロパティ値
リストの並べ替えに使用される PropertyDescriptor。
注釈
SortPropertyCore クラスは null
並べ替えの基本実装を BindingList<T> 提供しないため、 は既定で を返します。 並べ替えを有効にするには、 と から BindingList<T> クラスを派生させます。
並べ替えをオーバーライド ApplySortCore して実装します。
並べ替えの削除をオーバーライド RemoveSortCore して実装します。
をオーバーライド SupportsSortingCore し、 に設定 SupportsSortingCore します
true
。必要に応じて、 を SortPropertyCore オーバーライドして、並べ替えに使用される を PropertyDescriptor 返します。
適用対象
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET