共用方式為


LinkLabel.Link.Length 屬性

定義

取得或設定連結文字中的字元數。

public:
 property int Length { int get(); void set(int value); };
public int Length { get; set; }
member this.Length : int with get, set
Public Property Length As Integer

屬性值

連結文字中的字元數(含空格)。

備註

若要將 顯示中的 LinkLabel 文字指定為連結,請將屬性設 Start 為文字中的位置,開始建立連結。 設定好屬性後 Start ,把屬性值設 Length 為你想做連結文字的字元數,包括屬性 Start 中指定的字元位置。 例如,如果你想讓文字「The quick brown fox」的第一個字成為連結,你就把屬性設 Start 為零(0),屬性 Length 設為三(3)。

適用於