共用方式為


ProgressBar Class

Definition

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

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

Remarks

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

Properties

AltHTML
Application

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

Border

Gets a Border that represents the border of the ProgressBar.

Bottom

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

Creator

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

Height

Gets or sets the height of the ProgressBar.

Index

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

Interior

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

Left

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

Locked

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

Placement

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

PrintObject

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

Right

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

ShapeRange

Gets a ShapeRange object that represents the ProgressBar.

SourceName

Gets or sets the link source name of the ProgressBar.

Top

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

Visible

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

Width

Gets or sets the width of the ProgressBar in points.

ZOrder

Gets the z-order position of the ProgressBar.

Methods

Activate()

Activates the ProgressBar.

BringToFront()

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

CopyPicture(XlPictureAppearance, XlCopyPictureFormat)

Copies the ProgressBar to the Clipboard as a picture.

Delete()

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

Select(Object)

Selects the ProgressBar.

SendToBack()

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

SetVisibleCore(Boolean)

Sets the ProgressBar to the specified visible state.

Update()

Applies to