Share via


DomainUpDown Class

Definition

Represents a Windows Forms DomainUpDown that can be added to a Microsoft Office Excel worksheet.

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

Remarks

The Microsoft.Office.Tools.Excel.Controls.DomainUpDown is different from a System.Windows.Forms.DomainUpDown. The Microsoft.Office.Tools.Excel.Controls.DomainUpDown has additional members that enable it to be added to an Excel worksheet and that give it additional methods and properties.

Do not use the New constructor to create a new DomainUpDown. Use the AddDomainUpDown method to add a new DomainUpDown to a worksheet.

Properties

AltHTML
Application

Gets an Application object that represents the creator of the DomainUpDown.

Border

Gets a Border that represents the border of the DomainUpDown.

Bottom

Gets the distance, in points, between the bottom edge of the DomainUpDown and the top edge of the worksheet.

BottomRightCell

Gets a Range object that represents the cell that lies under the lower-right corner of the DomainUpDown.

Creator

Gets a value that indicates the application in which the DomainUpDown was created.

Height

Gets or sets the height of the DomainUpDown.

Index

Gets the index number of the DomainUpDown within the collection of OLEObjects on the sheet.

Interior

Gets an Interior object that represents the interior of the DomainUpDown.

Left

Gets or sets the distance, in points, between the left edge of the DomainUpDown and the left edge of the worksheet.

Locked

Gets or sets a value that indicates whether the DomainUpDown can be modified at design time when the sheet is protected.

OLEType

Gets a value that represents the OLE object type.

OnAction
Parent

Gets the parent object for the DomainUpDown.

Placement

Gets or sets an object that indicates the way the DomainUpDown is attached to the cells below it.

PrintObject

Gets or sets a value that indicates whether the DomainUpDown is printed when the worksheet is printed.

Right

Gets the distance, in points, between the right edge of the DomainUpDown and the left edge of the worksheet.

ShapeRange

Gets a ShapeRange object that represents the DomainUpDown.

SourceName

Gets or sets the link source name of the DomainUpDown.

Top

Gets or sets the distance, in points, between the top edge of the DomainUpDown and the top edge of the worksheet.

TopLeftCell

Gets a Range object that represents the cell that lies under the upper-left corner of the DomainUpDown.

Visible

Gets or sets a value that represents whether the DomainUpDown is visible.

Width

Gets or sets the width of the DomainUpDown in points.

ZOrder

Gets the z-order position of the DomainUpDown.

Methods

Activate()

Activates the DomainUpDown.

BringToFront()

Brings the DomainUpDown to the front of the z-order.

CopyPicture(XlPictureAppearance, XlCopyPictureFormat)

Copies the DomainUpDown to the Clipboard as a picture.

Delete()

Deletes a dynamically created DomainUpDown from the worksheet and removes it from the ControlCollection.

Select(Object)

Selects the DomainUpDown.

SendToBack()

Sends the DomainUpDown to the back of the z-order.

SetVisibleCore(Boolean)

Sets the DomainUpDown to the specified visible state.

Update()

Applies to