Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

LinkArea.Length Property

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

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public int Length { get; set; }

Property Value

Type: System.Int32
The number of characters, including spaces, in the link area.

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).

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft