TrackBar Class

Definition

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

[System.ComponentModel.DefaultEvent("Scroll")]
[System.ComponentModel.DefaultProperty("Value")]
[System.ComponentModel.ToolboxItem(false)]
public class TrackBar : System.Windows.Forms.TrackBar
Inheritance
TrackBar
Attributes

Remarks

The Microsoft.Office.Tools.Excel.Controls.TrackBar is different from a System.Windows.Forms.TrackBar. The Microsoft.Office.Tools.Excel.Controls.TrackBar 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 TrackBar. Use the AddTrackBar method to add a new TrackBar to a worksheet.

Properties

AltHTML
Application

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

Border

Gets a Border that represents the border of the TrackBar.

Bottom

Gets the distance, in points, between the bottom edge of the TrackBar 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 TrackBar.

Creator

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

Height

Gets or sets the height of the TrackBar.

Index

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

Interior

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

Left

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

Locked

Gets or sets a value that indicates whether the TrackBar 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 TrackBar.

Placement

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

PrintObject

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

Right

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

ShapeRange

Gets a ShapeRange object that represents the TrackBar.

SourceName

Gets or sets the link source name of the TrackBar.

Top

Gets or sets the distance, in points, between the top edge of the TrackBar 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 TrackBar.

Visible

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

Width

Gets or sets the width of the TrackBar in points.

ZOrder

Gets the z-order position of the TrackBar.

Methods

Activate()

Activates the TrackBar.

BringToFront()

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

CopyPicture(XlPictureAppearance, XlCopyPictureFormat)

Copies the TrackBar to the Clipboard as a picture.

Delete()

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

Select(Object)

Selects the TrackBar.

SendToBack()

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

SetVisibleCore(Boolean)

Sets the TrackBar to the specified visible state.

Update()

Applies to