Compartir a través de


TrackBar Class

Definition

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

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

Remarks

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

Properties

AltHTML
Automation
Bottom

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

Height

Gets or sets the height of the TrackBar.

InlineShape

Gets the underlying InlineShape of the TrackBar.

Left

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

Orientation

Gets or sets a value indicating the horizontal or vertical orientation of the track bar.

Right

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

Shape

Gets the underlying Shape of the TrackBar.

Top

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

Width

Gets or sets the width of the TrackBar in points.

Methods

Activate()

Activates the TrackBar.

Delete()

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

Select()

Selects the TrackBar.

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

Applies to