ListView.LabelWrap 屬性

定義

取得或設定值,指出項目在控制項中顯示為圖示時,項目標籤是否要換行。

public:
 property bool LabelWrap { bool get(); void set(bool value); };
public bool LabelWrap { get; set; }
member this.LabelWrap : bool with get, set
Public Property LabelWrap As Boolean

屬性值

如果項目顯示為圖示時項目標籤換行,則為 true,否則為 false。 預設為 true

備註

LabelWrap當 屬性設定為 true 時,專案文字會視需要包裝至下一行文字。 如果文字超過兩行文字,則會縮短文字。 如果使用者選取專案,則會顯示所有專案文字。 LabelWrap如果 屬性設定 false 為 ,則所有專案文字都會顯示在單行上。 當 設定為 falseLabelWrap ,會顯示整個專案文字。 只有當 屬性設定為 LargeIconSmallIcon 時, View 才會使用這個屬性。

適用於

另請參閱