Edit

Share via


Pane Interface

Definition

Represents a window pane. The Pane object is a member of the Panes collection. The Panes#SameCHM collection includes all the window panes for a single window.

public interface class Pane
[System.Runtime.InteropServices.Guid("00020960-0000-0000-C000-000000000046")]
public interface Pane
type Pane = interface
Public Interface Pane
Attributes

Remarks

Use Panes(Index), where Index is the index number, to return a single Pane object. The following example closes the active pane.

<span class="label">If ActiveDocument.ActiveWindow.Panes.Count &gt;= 2 Then _ 































































































































































































































































    ActiveDocument.ActiveWindow.ActivePane.Close</span>

Use the Add method or the Split property to add a window pane. The following example splits the active window at 20 percent of the current window size.

<span class="label">ActiveDocument.ActiveWindow.Panes.Add SplitVertical:=20</span>

The following example splits the active window in half.

<span class="label">ActiveDocument.ActiveWindow.Split = True</span>

You can use the SplitSpecial property to show comments, footnotes, or endnotes in a separate pane.

A window has more than one pane if the window is split or the view is not print layout view and information such as footnotes or comments are displayed. The following example displays the comments pane in normal view and then prompts to close the pane.

<span class="label">ActiveDocument.ActiveWindow.View.Type = wdNormalView 































































































































































































































































If ActiveDocument.Comments.Count &gt;= 1 Then 































































































































































































































































    ActiveDocument.ActiveWindow.View.SplitSpecial = wdPaneComments 































































































































































































































































    response = _ 































































































































































































































































        MsgBox("Do you want to close the comments pane?", vbYesNo) 































































































































































































































































    If response = vbYes Then _ 































































































































































































































































        ActiveDocument.ActiveWindow.ActivePane.Close 































































































































































































































































End If</span>

Properties

Application

Returns an Application object that represents the Microsoft Word application.

BrowseToWindow

Reserved for internal use.

BrowseWidth

Returns the width (in points) of the area in which text wraps in the specified pane. Read-only Long.

Creator

Returns a 32-bit integer that indicates the application in which the specified object was created. Read-only Long.

DisplayRulers

True if rulers are displayed for the specified pane. Read/write Boolean.

DisplayVerticalRuler

True if a vertical ruler is displayed for the specified pane. Read/write Boolean.

Document

Returns a Document object associated with the specified pane. Read-only.

Frameset

Returns a Frameset object that represents an entire frames page or a single frame on a frames page. Read-only.

HorizontalPercentScrolled

Returns or sets the horizontal scroll position as a percentage of the document width. Read/write Long.

Index

Returns a Long that represents the position of an item in a collection. Read-only.

MinimumFontSize

Returns or sets the minimum font size (in points) displayed for the specified pane. Read/write Long.

Next

Returns a Pane object that represents the next document pane in the collection. Read-only.

Pages

Returns a Pages collection that represents the pages in a document.

Parent

Returns an Object that represents the parent object of the specified Pane object.

Previous

Returns a Pane object that represents the previous document pane in the collection. Read-only.

Selection

Returns the Selection object that represents a selection or the insertion point within a document pane. Read-only.

VerticalPercentScrolled

Returns or sets the vertical scroll position as a percentage of the document length. Read/write Long.

View

Returns a View object that represents the view for the specified pane.

Zooms

Returns a Zooms#SameCHM collection that represents the magnification options for each view (such as normal view, outline view or print layout view).

Methods

Activate()

Activates the specified pane.

AutoScroll(Int32)

Scrolls automatically through the specified pane.

Close()

Closes the specified Mail Merge data source, pane, or task.

LargeScroll(Object, Object, Object, Object)

Scrolls a window or pane by the specified number of screens.

NewFrameset()

Creates a new frames page based on the specified pane.

PageScroll(Object, Object)

Scrolls through the specified pane or window page by page.

SmallScroll(Object, Object, Object, Object)

Scrolls a window or pane by the specified number of lines.

TOCInFrameset()

Creates a table of contents based on the specified document and puts it in a new frame on the left side of the frames page.

Applies to