ItemBoundsPortion 列舉
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
指定一部分的清單檢視項目,以從中擷取週框 (Bounding Rectangle)。
public enum class ItemBoundsPortion
C#
public enum ItemBoundsPortion
type ItemBoundsPortion =
Public Enum ItemBoundsPortion
- 繼承
Entire | 0 | 應該擷取整個項目的週框,包括圖示、項目文字和子項目的文字 (如有顯示)。 |
Icon | 1 | 應該擷取圖示或小圖示的週框。 |
ItemOnly | 3 | 應該擷取圖示或小圖示和項目文字的週框。 在 ListView 中除詳細資料檢視外的所有檢視中,這個值指定和 |
Label | 2 | 應該擷取項目文字的週框。 |
呼叫 GetItemRect 控制項的 ListView 方法時,請使用這個列舉的成員。 呼叫 類別的 ListViewItem 方法時 GetBounds ,也會使用此列舉。
產品 | 版本 |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8 |
Windows Desktop | 3.0, 3.1, 5, 6, 7 |