|
|
|
date: Sun, 20 Jul 2008 21:22:22 -0600,
group: microsoft.public.dotnet.framework.windowsforms.controls
back
RE: LinkLabel - a couple of questions
Hi Dave,
Question 1:
When we set the LinkArea property of a LinkLabel control, a part of the
text of the LinkLabel control is treated as a link. LinkLabel re-calculates
the area that needs to contain all text within it if the AutoSize property
of the LinkLabel is set to true.
The calculated areas may be different in the cases that the LinkArea
property is set and that the LinkArea property is not set. And this
behavior is by design.
Question 2:
You can add multiple links to a LinkLabel control by calling the Add method
on the LinkLabel.Links property.
Each hyperlink displayed in the LinkLabel control is an instance of the
LinkLabel.Link class. The LinkLabel.Link class defines display information,
state, and location of the hyperlink. In addition, the LinkData property of
the LinkLabel.Link class enables you to associate information, such as a
URL to display, with the hyperlink.
When a user clicks a hyperlink within the control, the LinkClicked event is
raised, and the LinkLabel.Link object representing the hyperlink that was
clicked is passed as part of the LinkLabelLinkClickedEventArgs object that
is passed as a parameter to the event handler.
As for link behavior, it's only available on the LinkLabel. That's to say,
we cannot set a link behavior for each link within a LinkLabel.
For more information on the LinkLabel class, see the following MSDN
document:
http://msdn.microsoft.com/en-us/library/system.windows.forms.linklabel.aspx
Hope this helps.
If you have any question, please feel free to let me know.
Sincerely,
Linda Liu
Microsoft Online Community Support
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
date: Mon, 21 Jul 2008 08:57:03 GMT
author: (Linda Liu[MSFT])
|
|