Compartilhar via


HScrollBar Class

Definition

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

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

Remarks

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

Properties

AltHTML
Automation
Bottom

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

Height

Gets or sets the height of the HScrollBar.

InlineShape

Gets the underlying InlineShape of the HScrollBar.

Left

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

Right

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

Shape

Gets the underlying Shape of the HScrollBar.

Top

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

Width

Gets or sets the width of the HScrollBar in points.

Methods

Activate()

Activates the HScrollBar.

Delete()

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

Select()

Selects the HScrollBar.

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

Applies to