Freigeben über


LinkLabel Class

Definition

Represents a Windows Forms LinkLabel that can be added to a Microsoft Office Excel worksheet.

public ref class LinkLabel : System::Windows::Forms::LinkLabel
[System.ComponentModel.DefaultEvent("LinkClicked")]
[System.ComponentModel.DefaultProperty("Text")]
[System.ComponentModel.ToolboxItem(false)]
public class LinkLabel : System.Windows.Forms.LinkLabel
[<System.ComponentModel.DefaultEvent("LinkClicked")>]
[<System.ComponentModel.DefaultProperty("Text")>]
[<System.ComponentModel.ToolboxItem(false)>]
type LinkLabel = class
    inherit LinkLabel
Public Class LinkLabel
Inherits LinkLabel
Inheritance
LinkLabel
Attributes

Remarks

The Microsoft.Office.Tools.Excel.Controls.LinkLabel is different from a System.Windows.Forms.LinkLabel. The Microsoft.Office.Tools.Excel.Controls.LinkLabel has additional members that enable it to be added to an Excel worksheet and that give it additional methods and properties.

Do not use the New constructor to create a new LinkLabel. Use the AddLinkLabel method to add a new LinkLabel to a worksheet.

Properties

AltHTML
Application

Gets an Application object that represents the creator of the LinkLabel.

Border

Gets a Border that represents the border of the LinkLabel.

Bottom

Gets the distance, in points, between the bottom edge of the LinkLabel and the top edge of the worksheet.

BottomRightCell

Gets a Range object that represents the cell that lies under the lower-right corner of the LinkLabel.

Creator

Gets a value that indicates the application in which the LinkLabel was created.

Height

Gets or sets the height of the LinkLabel.

Index

Gets the index number of the LinkLabel within the collection of OLEObjects on the sheet.

Interior

Gets an Interior object that represents the interior of the LinkLabel.

Left

Gets or sets the distance, in points, between the left edge of the LinkLabel and the left edge of the worksheet.

Locked

Gets or sets a value that indicates whether the LinkLabel can be modified at design time when the sheet is protected.

OLEType

Gets a value that represents the OLE object type.

OnAction
Parent

Gets the parent object for the LinkLabel.

Placement

Gets or sets an object that indicates the way the LinkLabel is attached to the cells below it.

PrintObject

Gets or sets a value that indicates whether the LinkLabel is printed when the worksheet is printed.

Right

Gets the distance, in points, between the right edge of the LinkLabel and the left edge of the worksheet.

ShapeRange

Gets a ShapeRange object that represents the LinkLabel.

SourceName

Gets or sets the link source name of the LinkLabel.

Top

Gets or sets the distance, in points, between the top edge of the LinkLabel and the top edge of the worksheet.

TopLeftCell

Gets a Range object that represents the cell that lies under the upper-left corner of the LinkLabel.

Visible

Gets or sets a value that represents whether the LinkLabel is visible.

Width

Gets or sets the width of the LinkLabel in points.

ZOrder

Gets the z-order position of the LinkLabel.

Methods

Activate()

Activates the LinkLabel.

BringToFront()

Brings the LinkLabel to the front of the z-order.

CopyPicture(XlPictureAppearance, XlCopyPictureFormat)

Copies the LinkLabel to the Clipboard as a picture.

Delete()

Deletes a dynamically created LinkLabel from the worksheet and removes it from the ControlCollection.

Select(Object)

Selects the LinkLabel.

SendToBack()

Sends the LinkLabel to the back of the z-order.

SetVisibleCore(Boolean)

Sets the LinkLabel to the specified visible state.

Update()

Applies to