Partager via


ControlFormat Members

Include Protected Members
Include Inherited Members

Contains Microsoft Excel control properties.

The ControlFormat type exposes the following members.

Properties

  Name Description
Public property _Default Reserved for internal use.
Public property Application Returns an Application object that represents the Microsoft Excel application.
Public property Creator Returns a 32-bit integer that indicates the application in which this object was created.
Public property DropDownLines Returns or sets the number of list lines displayed in the drop-down portion of a combo box.
Public property Enabled True if the object is enabled.
Public property LargeChange Returns or sets the amount that the scroll box increments or decrements for a page scroll (when the user clicks in the scroll bar body region).
Public property LinkedCell Returns or sets the worksheet range linked to the control's value.
Public property List Returns or sets the text entries in the specified list box or a combo box, as an array of strings, or returns or sets a single text entry. An error occurs if there are no entries in the list.
Public property ListCount Returns the number of entries in a list box or combo box. Returns 0 (zero) if there are no entries in the list.
Public property ListFillRange Returns or sets the worksheet range used to fill the specified list box.
Public property ListIndex Returns or sets the index number of the currently selected item in a list box or combo box.
Public property LockedText True if the text in the specified object will be locked to prevent changes when the workbook is protected.
Public property Max Returns or sets the maximum value of a scroll bar or spinner range. The scroll bar or spinner won’t take on values greater than this maximum value.
Public property Min Returns or sets the minimum value of a scroll bar or spinner range. The scroll bar or spinner won’t take on values less than this minimum value.
Public property MultiSelect Returns or sets the selection mode of the specified list box. Can be one of the following constants: xlNone, xlSimple, or xlExtended.
Public property Parent Returns the parent object for the specified object.
Public property PrintObject True if the object will be printed when the document is printed.
Public property SmallChange Returns or sets the amount that the scroll bar or spinner is incremented or decremented for a line scroll (when the user clicks an arrow).
Public property Value The name of specified control format.

Top

Methods

  Name Description
Public method AddItem Adds an item to a list box or a combo box.
Public method RemoveAllItems Removes all entries from a Microsoft Excel list box or combo box.
Public method RemoveItem Removes one or more items from a list box or combo box.

Top

See Also

Reference

ControlFormat Interface

Microsoft.Office.Interop.Excel Namespace