LinkLabel.Link.Length Property

Gets or sets the number of characters in the link text.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

public int Length { get; set; }
/** @property */
public int get_Length ()

/** @property */
public void set_Length (int value)

public function get Length () : int

public function set Length (value : int)

Not applicable.

Property Value

The number of characters, including spaces, in the link text.

To specify text from the LinkLabel to display as a link, set the Start property to the location in the text to start creating the link. After the Start property is set, set the value of the Length property to the number of characters, including the character position specified in the Start property, that you want to make the link text. For example, if you want to make the first word of the text "The quick brown fox" a link, you set the Start property to zero (0) and the Length property to three (3).

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show: