Share via


ProgressBar Class

Definition

Represents a Windows Forms ProgressBar that can be added to a Microsoft Office Word document.

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.Word.Controls.ProgressBar is different from a System.Windows.Forms.ProgressBar. The Microsoft.Office.Tools.Word.Controls.ProgressBar has additional members that enable it to be added to a Word document and that give it additional methods and properties.

Do not use the constructor to create a new ProgressBar. Use the AddProgressBar method to add a new ProgressBar to a document.

Properties

AltHTML
Automation
Bottom

Gets the distance, in points, between the bottom edge of the ProgressBar and the top edge of the document.

Height

Gets or sets the height of the ProgressBar.

InlineShape

Gets the underlying InlineShape of the ProgressBar.

Left

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

Right

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

Shape

Gets the underlying Shape of the ProgressBar.

Top

Gets or sets the distance, in points, between the top edge of the ProgressBar and the top edge of the document.

Width

Gets or sets the width of the ProgressBar in points.

Methods

Activate()

Activates the ProgressBar.

Delete()

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

Select()

Selects the ProgressBar.

SetBoundsCore(Int32, Int32, Int32, Int32, BoundsSpecified)
SetVisibleCore(Boolean)

Applies to