Windows forms создание меню

BestProg

Пример создания меню в C#. Элемент управления menuStrip

Содержание

Поиск на других ресурсах:

Условие задачи

Создать приложение типа Windows Forms Application . На форме приложения создать меню по образцу, как показано на рисунке 1.

Рис. 1. Меню, которое нужно создать

Выполнение

1. Запустить Microsoft Visual Studio. Создать проект по шаблону Windows Forms Application

Подробный пример создания проекта по шаблону Windows Forms Application описывается здесь .

Сохранить проект под произвольным именем.

2. Элемент управления MenuStrip

Для создания меню используется элемент управления MenuStrip . Он размещается на панели Toolbox во вкладке « Menus&Toolbars » (рис. 2).

Рис. 2. Элемент управления MenuStrip

После вынесения компонента на форму (с помощью мышки) форма приложения примет вид, как показано на рисунке 3. В нижней части окна проектирования формы размещается объект с именем menuStrip1 . С помощью этого имени можно иметь доступ к свойствам и методам меню.

Рис. 3. Форма приложения после размещения компонента MenuStrip

Если навести курсор мыши на элемент меню TypeHere , то появится кнопка вызова всплывающего меню. Если раскрыть всплывающее меню (клик мышкой), то откроется возможность выбора одного из трех видов элементов управления в меню (рис. 4):

  • MenuItem – стандартный элемент меню;
  • ComboBox – элемент меню типа «нисходящий список»;
  • TextBox – элемент меню типа «поле ввода».

В нашем случае выбираем первый вариант MenuItem .

Рис. 4. Типы элементов меню

Для создания подменю File достаточно набрать текст « File » (рис. 5). С помощью мышки и клавиатуры, можно добавлять элементы меню. Для удаления элемента меню, его предварительно нужно выделить мышкой и нажать клавишу Delete .

Рис. 5. Создание подменю File

После создания всех элементов меню, форма приложения примет вид, как показано на рисунке 6.

Рис. 6. Форма приложения после создания меню

Следующими шагами есть программирование событий, связанных с выбором конкретного элемента меню.

Menu Strip Класс

Определение

Предоставляет систему меню для формы. Provides a menu system for a form.

Примеры

В следующем примере кода демонстрируется использование MenuStrip в сценарии многодокументного интерфейса (MDI). The following code example demonstrates a MenuStrip in a multiple-document interface (MDI) scenario.

Комментарии

MenuStrip — это контейнер верхнего уровня, который заменяется MainMenu . MenuStrip is the top-level container that supersedes MainMenu. Он также обеспечивает обработку ключей и возможности многодокументного интерфейса (MDI). It also provides key handling and multiple document interface (MDI) features. Функционально ToolStripDropDownItem и ToolStripMenuItem работает вместе с MenuStrip , хотя они являются производными от ToolStripItem . Functionally, ToolStripDropDownItem and ToolStripMenuItem work along with MenuStrip, although they are derived from ToolStripItem.

Следующие элементы специально предназначены для эффективной работы с обоими ToolStripSystemRenderer ToolStripProfessionalRenderer ориентациями. The following items are specifically designed to work seamlessly with both ToolStripSystemRenderer and ToolStripProfessionalRenderer in all orientations. Они доступны по умолчанию во время разработки для MenuStrip элемента управления: They are available by default at design time for the MenuStrip control:

MenuStripЭлемент управления представляет контейнер для структуры меню формы. The MenuStrip control represents the container for the menu structure of a form. В ToolStripMenuItem структуру меню можно добавлять объекты MenuStrip , представляющие отдельные команды меню. You can add ToolStripMenuItem objects to the MenuStrip that represent the individual menu commands in the menu structure. Каждый ToolStripMenuItem может быть командой для приложения или родительским меню для других пунктов подменю. Each ToolStripMenuItem can be a command for your application or a parent menu for other submenu items.

Объект MenuStrip заменяет и расширяет MainMenu элемент управления, который был удален в .net Core 3,1. The MenuStrip replaces and extends the MainMenu control, which was removed in .NET Core 3.1.

Конструкторы

Инициализирует новый экземпляр класса MenuStrip. Initializes a new instance of the MenuStrip class.

Определяет значение свойства AutoScroll. Determines the value of the AutoScroll property.

(Унаследовано от ScrollableControl) ScrollStateFullDrag

Определяет, включил ли пользователь перетаскивание всего окна. Determines whether the user has enabled full window drag.

(Унаследовано от ScrollableControl) ScrollStateHScrollVisible

Определяет, установлено ли для свойства HScroll значение true . Determines whether the value of the HScroll property is set to true .

(Унаследовано от ScrollableControl) ScrollStateUserHasScrolled

Определяет, выполнял ли пользователь прокрутку в элементе управления ScrollableControl. Determines whether the user had scrolled through the ScrollableControl control.

(Унаследовано от ScrollableControl) ScrollStateVScrollVisible

Определяет, установлено ли для свойства VScroll значение true . Determines whether the value of the VScroll property is set to true .

(Унаследовано от ScrollableControl)

Свойства

Получает объект AccessibleObject, назначенный элементу управления. Gets the AccessibleObject assigned to the control.

(Унаследовано от Control) AccessibleDefaultActionDescription

Возвращает или задает описание выполняемого по умолчанию действия элемента управления для использования клиентскими приложениями со специальными возможностями. Gets or sets the default action description of the control for use by accessibility client applications.

(Унаследовано от Control) AccessibleDescription

Возвращает или задает описание элемента управления, используемого клиентскими приложениями со специальными возможностями. Gets or sets the description of the control used by accessibility client applications.

(Унаследовано от Control) AccessibleName

Возвращает или задает имя элемента управления, используемого клиентскими приложениями со специальными возможностями. Gets or sets the name of the control used by accessibility client applications.

(Унаследовано от Control) AccessibleRole

Возвращает или задает доступную роль элемента управления. Gets or sets the accessible role of the control.

(Унаследовано от Control) AllowDrop

Возвращает или задает значение, указывающее, будут ли операции перетаскивания и переупорядочения элементов обрабатываться с помощью событий, реализованных пользователем. Gets or sets a value indicating whether drag-and-drop and item reordering are handled through events that you implement.

(Унаследовано от ToolStrip) AllowItemReorder

Возвращает или задает значение, указывающее, будут ли операции перетаскивания и переупорядочения элементов обрабатываться классом ToolStrip в закрытом режиме. Gets or sets a value indicating whether drag-and-drop and item reordering are handled privately by the ToolStrip class.

(Унаследовано от ToolStrip) AllowMerge

Возвращает или задает значение, указывающее, могут ли быть объединены несколько объектов MenuStrip, ToolStripDropDownMenu, ToolStripMenuItem и других типов. Gets or sets a value indicating whether multiple MenuStrip, ToolStripDropDownMenu, ToolStripMenuItem, and other types can be combined.

(Унаследовано от ToolStrip) Anchor

Возвращает или задает границы контейнера, с которым связан объект ToolStrip, и определяет, как изменяются размеры объекта ToolStrip вместе с родительским объектом. Gets or sets the edges of the container to which a ToolStrip is bound and determines how a ToolStrip is resized with its parent.

(Унаследовано от ToolStrip) AutoScroll

Данное свойство не применимо к этому классу. This property is not relevant for this class.

(Унаследовано от ToolStrip) AutoScrollMargin

Данное свойство не применимо к этому классу. This property is not relevant for this class.

(Унаследовано от ToolStrip) AutoScrollMinSize

Данное свойство не применимо к этому классу. This property is not relevant for this class.

(Унаследовано от ToolStrip) AutoScrollOffset

Возвращает или задает местоположение, в котором выполняется прокрутка этого элемента управления в ScrollControlIntoView(Control). Gets or sets where this control is scrolled to in ScrollControlIntoView(Control).

(Унаследовано от Control) AutoScrollPosition

Данное свойство не применимо к этому классу. This property is not relevant for this class.

(Унаследовано от ToolStrip) AutoSize

Получает или задает значение, указывающее, изменяются ли размеры элемента управления автоматически для отображения всего его содержимого. Gets or sets a value indicating whether the control is automatically resized to display its entire contents.

(Унаследовано от ToolStrip) BackColor

Возвращает или задает цвет фона для объекта ToolStrip. Gets or sets the background color for the ToolStrip.

(Унаследовано от ToolStrip) BackgroundImage

Возвращает или задает фоновое изображение, отображаемое на элементе управления. Gets or sets the background image displayed in the control.

(Унаследовано от Control) BackgroundImageLayout

Возвращает или задает макет фонового изображения в соответствии с перечислением ImageLayout. Gets or sets the background image layout as defined in the ImageLayout enumeration.

(Унаследовано от Control) BindingContext

Возвращает или задает контекст привязки для объекта ToolStrip. Gets or sets the binding context for the ToolStrip.

(Унаследовано от ToolStrip) Bottom

Возвращает расстояние в пикселях между нижней границей элемента управления и верхней границей клиентской области контейнера. Gets the distance, in pixels, between the bottom edge of the control and the top edge of its container’s client area.

(Унаследовано от Control) Bounds

Возвращает или задает размер и местоположение (в пикселях) элемента управления, включая его неклиентские элементы, относительно его родительского элемента управления. Gets or sets the size and location of the control including its nonclient elements, in pixels, relative to the parent control.

(Унаследовано от Control) CanEnableIme

Получает значение, указывающее, можно ли для свойства ImeMode установить активное значение с целью включения поддержки IME. Gets a value indicating whether the ImeMode property can be set to an active value, to enable IME support.

(Унаследовано от Control) CanFocus

Возвращает значение, указывающее, может ли элемент управления получать фокус. Gets a value indicating whether the control can receive focus.

(Унаследовано от Control) CanOverflow

Возвращает или задает значение, которое указывает, поддерживает ли MenuStrip область переполнения. Gets or sets a value indicating whether the MenuStrip supports overflow functionality.

Определяет, могут ли вызываться события в элементе управления. Determines if events can be raised on the control.

(Унаследовано от Control) CanSelect

Возвращает значение, указывающее, доступен ли элемент управления для выбора. Gets a value indicating whether the control can be selected.

(Унаследовано от Control) Capture

Возвращает или задает значение, указывающее, была ли мышь захвачена элементом управления. Gets or sets a value indicating whether the control has captured the mouse.

(Унаследовано от Control) CausesValidation

Возвращает или задает значение, указывающее, вызывает ли объект ToolStrip выполнение проверки на любом элементе управления, который нуждается в проверке, когда получает фокус. Gets or sets a value indicating whether the ToolStrip causes validation to be performed on any controls that require validation when it receives focus.

(Унаследовано от ToolStrip) ClientRectangle

Возвращает прямоугольник, представляющий клиентскую область элемента управления. Gets the rectangle that represents the client area of the control.

(Унаследовано от Control) ClientSize

Возвращает или задает высоту и ширину клиентской области элемента управления. Gets or sets the height and width of the client area of the control.

(Унаследовано от Control) CompanyName

Возвращает название организации или имя создателя приложения, содержащего элемент управления. Gets the name of the company or creator of the application containing the control.

(Унаследовано от Control) Container

Возвращает объект IContainer, который содержит коллекцию Component. Gets the IContainer that contains the Component.

(Унаследовано от Component) ContainsFocus

Возвращает значение, указывающее, имеет ли элемент управления или один из его дочерних элементов фокус ввода в настоящий момент. Gets a value indicating whether the control, or one of its child controls, currently has the input focus.

(Унаследовано от Control) ContextMenu

Возвращает или задает контекстное меню, связанное с элементом управления. Gets or sets the shortcut menu associated with the control.

(Унаследовано от Control) ContextMenuStrip

Возвращает или задает объект ContextMenuStrip, сопоставленный с этим элементом управления. Gets or sets the ContextMenuStrip associated with this control.

(Унаследовано от Control) Controls

Данное свойство не применимо к этому классу. This property is not relevant for this class.

(Унаследовано от ToolStrip) Created

Возвращает значение, указывающее, был ли создан элемент управления. Gets a value indicating whether the control has been created.

(Унаследовано от Control) CreateParams

Возвращает параметры, необходимые для создания дескриптора элемента управления. Gets the required creation parameters when the control handle is created.

(Унаследовано от ScrollableControl) Cursor

Возвращает или задает курсор, отображаемый, когда указатель мыши находится над объектом ToolStrip. Gets or sets the cursor that is displayed when the mouse pointer is over the ToolStrip.

(Унаследовано от ToolStrip) DataBindings

Возвращает привязки данных для элемента управления. Gets the data bindings for the control.

(Унаследовано от Control) DefaultCursor

Возвращает или задает курсор по умолчанию для элемента управления. Gets or sets the default cursor for the control.

(Унаследовано от Control) DefaultDock

Возвращает позицию закрепления объекта ToolStrip, указывающую, какие границы закрепляются на контейнере. Gets the docking location of the ToolStrip, indicating which borders are docked to the container.

(Унаследовано от ToolStrip) DefaultDropDownDirection

Возвращает или задает значение, представляющее направление по умолчанию, в котором отображается элемент управления ToolStripDropDown относительно объекта ToolStrip. Gets or sets a value representing the default direction in which a ToolStripDropDown control is displayed relative to the ToolStrip.

(Унаследовано от ToolStrip) DefaultGripMargin

Возвращает интервал по умолчанию (в пикселях) между захватом для изменения размера и краями объекта MenuStrip. Gets the default spacing, in pixels, between the sizing grip and the edges of the MenuStrip.

Возвращает стандартный режим редактора методов ввода, поддерживаемый данным элементом управления. Gets the default Input Method Editor (IME) mode supported by the control.

(Унаследовано от Control) DefaultMargin

Возвращает интервал (в пикселях) между ToolStrip и ToolStripContainer. Gets the spacing, in pixels, between the ToolStrip and the ToolStripContainer.

(Унаследовано от ToolStrip) DefaultMaximumSize

Возвращает длину и высоту в пикселях, которые были указаны в качестве максимального размера элемента управления. Gets the length and height, in pixels, that is specified as the default maximum size of a control.

(Унаследовано от Control) DefaultMinimumSize

Возвращает длину и высоту в пикселях, которые были указаны в качестве минимального размера элемента управления. Gets the length and height, in pixels, that is specified as the default minimum size of a control.

(Унаследовано от Control) DefaultPadding

Получает величину зазоров (в пикселях) от левого, правого, верхнего и нижнего краев элемента управления MenuStrip до соответствующих краев формы. Gets the spacing, in pixels, between the left, right, top, and bottom edges of the MenuStrip from the edges of the form.

Возвращает значение, указывающее, должны ли по умолчанию отображаться подсказки для элемента управления MenuStrip. Gets a value indicating whether ToolTips are shown for the MenuStrip by default.

Возвращает горизонтальные и вертикальные размеры (в пикселях) объекта MenuStrip при его первом создании. Gets the horizontal and vertical dimensions, in pixels, of the MenuStrip when it is first created.

Возвращает значение, указывающее, находится ли данный компонент Component в режиме конструктора в настоящее время. Gets a value that indicates whether the Component is currently in design mode.

(Унаследовано от Component) DeviceDpi

Получает значение DPI для устройства, на котором сейчас отображается элемент управления. Gets the DPI value for the display device where the control is currently being displayed.

(Унаследовано от Control) DisplayedItems

Возвращает подмножество элементов, отображаемых в данное время на ToolStrip, включая элементы, которые автоматически добавлены в ToolStrip. Gets the subset of items that are currently displayed on the ToolStrip, including items that are automatically added into the ToolStrip.

(Унаследовано от ToolStrip) DisplayRectangle

Возвращает текущий отображаемый прямоугольник. Retrieves the current display rectangle.

(Унаследовано от ToolStrip) Disposing

Получает значение, указывающее, находится ли базовый класс Control в процессе удаления. Gets a value indicating whether the base Control class is in the process of disposing.

(Унаследовано от Control) Dock

Возвращает или задает границы объекта ToolStrip, которые прикрепляются к его родительскому элементу управления, и определяет способ изменения размеров объекта ToolStrip при изменении размеров его родительского элемента управления. Gets or sets which ToolStrip borders are docked to its parent control and determines how a ToolStrip is resized with its parent.

(Унаследовано от ToolStrip) DockPadding

Получает параметры заполнения прикрепления для всех краев элемента управления. Gets the dock padding settings for all edges of the control.

(Унаследовано от ScrollableControl) DoubleBuffered

Возвращает или задает значение, указывающее, должна ли поверхность этого элемента управления перерисовываться с помощью дополнительного буфера, чтобы уменьшить или предотвратить мерцание. Gets or sets a value indicating whether this control should redraw its surface using a secondary buffer to reduce or prevent flicker.

(Унаследовано от Control) Enabled

Возвращает или задает значение, указывающее, может ли элемент управления отвечать на действия пользователя. Gets or sets a value indicating whether the control can respond to user interaction.

(Унаследовано от Control) Events

Возвращает список обработчиков событий, которые прикреплены к этому объекту Component. Gets the list of event handlers that are attached to this Component.

(Унаследовано от Component) Focused

Возвращает значение, указывающее, имеется ли на элементе управления фокус ввода. Gets a value indicating whether the control has input focus.

(Унаследовано от Control) Font

Возвращает или задает шрифт, используемый при отображении текста в элементе управления. Gets or sets the font used to display text in the control.

(Унаследовано от ToolStrip) FontHeight

Возвращает или задает высоту шрифта элемента управления. Gets or sets the height of the font of the control.

(Унаследовано от Control) ForeColor

Возвращает или задает цвет переднего плана для элемента управления ToolStrip. Gets or sets the foreground color of the ToolStrip.

(Унаследовано от ToolStrip) GripDisplayStyle

Возвращает ориентацию маркера перемещения ToolStrip. Gets the orientation of the ToolStrip move handle.

(Унаследовано от ToolStrip) GripMargin

Возвращает или задает размер пространства вокруг маркера перемещения ToolStrip. Gets or sets the space around the ToolStrip move handle.

(Унаследовано от ToolStrip) GripRectangle

Возвращает границы маркера перемещения ToolStrip. Gets the boundaries of the ToolStrip move handle.

(Унаследовано от ToolStrip) GripStyle

Возвращает или задает значение, определяющее видимость захвата, используемого для изменения положения элемента управления. Gets or sets the visibility of the grip used to reposition the control.

Возвращает дескриптор окна, с которым связан элемент управления. Gets the window handle that the control is bound to.

(Унаследовано от Control) HasChildren

Данное свойство не применимо к этому классу. This property is not relevant for this class.

Читайте также:  Bsod 0x00000098 windows 10

(Унаследовано от ToolStrip) Height

Возвращает или задает высоту элемента управления. Gets or sets the height of the control.

(Унаследовано от Control) HorizontalScroll

Данное свойство не применимо к этому классу. This property is not relevant for this class.

(Унаследовано от ToolStrip) HScroll

Получает или задает значение, показывающее, отображается ли горизонтальная полоса прокрутки. Gets or sets a value indicating whether the horizontal scroll bar is visible.

(Унаследовано от ScrollableControl) ImageList

Возвращает или задает список изображений, содержащий изображение, отображаемое на элементе ToolStrip. Gets or sets the image list that contains the image displayed on a ToolStrip item.

(Унаследовано от ToolStrip) ImageScalingSize

Возвращает или задает размер изображения (в пикселях), который используется на объекте ToolStrip. Gets or sets the size, in pixels, of an image used on a ToolStrip.

(Унаследовано от ToolStrip) ImeMode

Возвращает или задает режим редактора метода ввода элемента управления. Gets or sets the Input Method Editor (IME) mode of the control.

(Унаследовано от Control) ImeModeBase

Получает или задает режим IME элемента управления. Gets or sets the IME mode of a control.

(Унаследовано от Control) InvokeRequired

Возвращает значение, указывающее, следует ли вызывающему оператору обращаться к методу invoke во время вызовов метода из элемента управления, так как вызывающий оператор находится не в том потоке, в котором был создан элемент управления. Gets a value indicating whether the caller must call an invoke method when making method calls to the control because the caller is on a different thread than the one the control was created on.

(Унаследовано от Control) IsAccessible

Возвращает или задает значение, указывающее, является ли элемент управления видимым для приложений со специальными возможностями. Gets or sets a value indicating whether the control is visible to accessibility applications.

(Унаследовано от Control) IsCurrentlyDragging

Возвращает значение, указывающее, производит ли пользователь в настоящее время перемещение объекта ToolStrip из одного контейнера ToolStripContainer в другой. Gets a value indicating whether the user is currently moving the ToolStrip from one ToolStripContainer to another.

(Унаследовано от ToolStrip) IsDisposed

Возвращает значение, указывающее, был ли удален элемент управления. Gets a value indicating whether the control has been disposed of.

(Унаследовано от Control) IsDropDown

Возвращает значение, указывающее, является ли объект ToolStrip элементом управления ToolStripDropDown. Gets a value indicating whether a ToolStrip is a ToolStripDropDown control.

(Унаследовано от ToolStrip) IsHandleCreated

Возвращает значение, указывающее, имеется ли у элемента управления связанный с ним дескриптор. Gets a value indicating whether the control has a handle associated with it.

(Унаследовано от Control) IsMirrored

Возвращает значение, указывающее, отображается ли зеркально элемент управления. Gets a value indicating whether the control is mirrored.

(Унаследовано от Control) Items

Возвращает все элементы, которые принадлежат к объекту ToolStrip. Gets all the items that belong to a ToolStrip.

(Унаследовано от ToolStrip) LayoutEngine

Передает ссылку на кэшированный объект LayoutEngine, возвращенный интерфейсом обработчика структуры. Passes a reference to the cached LayoutEngine returned by the layout engine interface.

(Унаследовано от ToolStrip) LayoutSettings

Возвращает или задает характеристики схемы структуры. Gets or sets layout scheme characteristics.

(Унаследовано от ToolStrip) LayoutStyle

Возвращает или задает значение, указывающее, как элемент управления ToolStrip выполняет размещение элементов коллекции. Gets or sets a value indicating how the ToolStrip lays out the items collection.

(Унаследовано от ToolStrip) Left

Возвращает или задает расстояние в пикселях между левой границей элемента управления и левой границей клиентской области его контейнера. Gets or sets the distance, in pixels, between the left edge of the control and the left edge of its container’s client area.

(Унаследовано от Control) Location

Возвращает или задает координаты левого верхнего угла элемента управления относительно левого верхнего угла его контейнера. Gets or sets the coordinates of the upper-left corner of the control relative to the upper-left corner of its container.

(Унаследовано от Control) Margin

Возвращает или задает расстояние между элементами управления. Gets or sets the space between controls.

(Унаследовано от Control) MaximumSize

Возвращает или задает размер, являющийся верхней границей, которую может указать метод GetPreferredSize(Size). Gets or sets the size that is the upper limit that GetPreferredSize(Size) can specify.

(Унаследовано от Control) MaxItemSize

Возвращает максимальную высоту и ширину элемента ToolStrip (в пикселях). Gets the maximum height and width, in pixels, of the ToolStrip.

(Унаследовано от ToolStrip) MdiWindowListItem

Возвращает или задает объект ToolStripMenuItem, который используется для отображения списка дочерних форм интерфейса MDI. Gets or sets the ToolStripMenuItem that is used to display a list of Multiple-document interface (MDI) child forms.

Возвращает или задает размер, являющийся нижней границей, которую может указать метод GetPreferredSize(Size). Gets or sets the size that is the lower limit that GetPreferredSize(Size) can specify.

(Унаследовано от Control) Name

Возвращает или задает имя элемента управления. Gets or sets the name of the control.

(Унаследовано от Control) Orientation

Возвращает ориентацию элемента управления ToolStripPanel. Gets the orientation of the ToolStripPanel.

(Унаследовано от ToolStrip) OverflowButton

Возвращает значение элемента ToolStripItem, который является кнопкой переполнения для элемента управления ToolStrip с включенной функцией переполнения. Gets the ToolStripItem that is the overflow button for a ToolStrip with overflow enabled.

(Унаследовано от ToolStrip) Padding

Возвращает или задает заполнение в элементе управления. Gets or sets padding within the control.

(Унаследовано от Control) Parent

Возвращает или задает родительский контейнер элемента управления. Gets or sets the parent container of the control.

(Унаследовано от Control) PreferredSize

Возвращает размер прямоугольной области, в которую может поместиться элемент управления. Gets the size of a rectangular area into which the control can fit.

(Унаследовано от Control) ProductName

Возвращает имя продукта сборки, содержащей элемент управления. Gets the product name of the assembly containing the control.

(Унаследовано от Control) ProductVersion

Возвращает версию сборки, содержащую элемент управления. Gets the version of the assembly containing the control.

(Унаследовано от Control) RecreatingHandle

Возвращает значение, указывающее, осуществляет ли в настоящий момент элемент управления повторное создание дескриптора. Gets a value indicating whether the control is currently re-creating its handle.

(Унаследовано от Control) Region

Возвращает или задает область окна, связанную с элементом управления. Gets or sets the window region associated with the control.

(Унаследовано от Control) Renderer

Возвращает или задает значение для элемента управления ToolStripRenderer для настройки внешнего вида и удобства использования элемента управления ToolStrip. Gets or sets a ToolStripRenderer used to customize the look and feel of a ToolStrip.

(Унаследовано от ToolStrip) RenderMode

Возвращает или задает значение, указывающее, какие стили оформления будут применяться к ToolStrip. Gets or sets a value that indicates which visual styles will be applied to the ToolStrip.

(Унаследовано от ToolStrip) RenderRightToLeft

Это свойство устарело. This property is now obsolete.

(Унаследовано от Control) ResizeRedraw

Возвращает или задает значение, указывающее, перерисовывается ли элемент управления при изменении размеров. Gets or sets a value indicating whether the control redraws itself when resized.

(Унаследовано от Control) Right

Возвращает расстояние в пикселях между правой границей элемента управления и левой границей клиентской области его контейнера. Gets the distance, in pixels, between the right edge of the control and the left edge of its container’s client area.

(Унаследовано от Control) RightToLeft

Возвращает или задает значение, указывающее, выровнены ли компоненты элемента управления для поддержки языков, использующих шрифты с написанием справа налево. Gets or sets a value indicating whether control’s elements are aligned to support locales using right-to-left fonts.

(Унаследовано от Control) ScaleChildren

Получает значение, определяющее масштабирование дочерних элементов управления. Gets a value that determines the scaling of child controls.

(Унаследовано от Control) ShowFocusCues

Возвращает значение, указывающее, должен ли элемент управления отображать прямоугольники фокуса. Gets a value indicating whether the control should display focus rectangles.

(Унаследовано от Control) ShowItemToolTips

Получает или задает значение, указывающее, должны ли отображаться всплывающие подсказки для элемента управления MenuStrip. Gets or sets a value indicating whether ToolTips are shown for the MenuStrip.

Возвращает значение, указывающее, имеет ли пользовательский интерфейс соответствующее состояние, при котором отображаются или скрываются сочетания клавиш. Gets a value indicating whether the user interface is in the appropriate state to show or hide keyboard accelerators.

(Унаследовано от Control) Site

Возвращает или задает местонахождение элемента управления. Gets or sets the site of the control.

(Унаследовано от Control) Size

Возвращает или задает высоту и ширину элемента управления. Gets or sets the height and width of the control.

(Унаследовано от Control) Stretch

Получает или задает значение, указывающее, растягивается ли элемент управления MenuStrip на всю длину в своем контейнере. Gets or sets a value indicating whether the MenuStrip stretches from end to end in its container.

Возвращает или задает последовательность перехода по клавише TAB между элементами управления внутри контейнера. Gets or sets the tab order of the control within its container.

(Унаследовано от Control) TabStop

Возвращает или задает значение, показывающее, может ли пользователь передать фокус в ToolStrip с помощью клавиши TAB. Gets or sets a value indicating whether the user can give the focus to an item in the ToolStrip using the TAB key.

(Унаследовано от ToolStrip) Tag

Возвращает или задает объект, содержащий данные об элементе управления. Gets or sets the object that contains data about the control.

(Унаследовано от Control) Text

Возвращает или задает текст, связанный с этим элементом управления. Gets or sets the text associated with this control.

(Унаследовано от Control) TextDirection

Возвращает или задает направление, в котором отображается текст на объекте ToolStrip. Gets or sets the direction in which to draw text on a ToolStrip.

(Унаследовано от ToolStrip) Top

Возвращает или задает расстояние в пикселях между верхней границей элемента управления и верхней границей клиентской области его контейнера. Gets or sets the distance, in pixels, between the top edge of the control and the top edge of its container’s client area.

(Унаследовано от Control) TopLevelControl

Получает родительский элемент управления, не имеющий другого родительского элемента управления Windows Forms. Gets the parent control that is not parented by another Windows Forms control. Как правило, им является внешний объект Form, в котором содержится элемент управления. Typically, this is the outermost Form that the control is contained in.

(Унаследовано от Control) UseWaitCursor

Возвращает или задает значение, указывающее, следует ли использовать курсор ожидания для текущего элемента управления и всех дочерних элементов управления. Gets or sets a value indicating whether to use the wait cursor for the current control and all child controls.

(Унаследовано от Control) VerticalScroll

Данное свойство не применимо к этому классу. This property is not relevant for this class.

(Унаследовано от ToolStrip) Visible

Возвращает или задает значение, указывающее, отображаются ли элемент управления и все его дочерние элементы управления. Gets or sets a value indicating whether the control and all its child controls are displayed.

(Унаследовано от Control) VScroll

Получает или задает значение, показывающее, отображается ли вертикальная полоса прокрутки. Gets or sets a value indicating whether the vertical scroll bar is visible.

(Унаследовано от ScrollableControl) Width

Возвращает или задает ширину элемента управления. Gets or sets the width of the control.

(Унаследовано от Control) WindowTarget

Данное свойство не применимо к этому классу. This property is not relevant for this class.

(Унаследовано от Control)

Методы

Уведомляет клиентские приложения со специальными возможностями об указанном перечислении AccessibleEvents для указанного дочернего элемента управления. Notifies the accessibility client applications of the specified AccessibleEvents for the specified child control.

(Унаследовано от Control) AccessibilityNotifyClients(AccessibleEvents, Int32, Int32)

Уведомляет клиентские приложения со специальными возможностями об указанном перечислении AccessibleEvents для указанного дочернего элемента управления. Notifies the accessibility client applications of the specified AccessibleEvents for the specified child control .

(Унаследовано от Control) AdjustFormScrollbars(Boolean)

Настраивает полосы прокрутки в контейнере на основе текущей позиции элемента управления и выбранного в данный момент элемента управления. Adjusts the scroll bars on the container based on the current control positions and the control currently selected.

(Унаследовано от ScrollableControl) BeginInvoke(Delegate)

Выполняет указанный делегат асинхронно в потоке, в котором был создан базовый дескриптор элемента управления. Executes the specified delegate asynchronously on the thread that the control’s underlying handle was created on.

(Унаследовано от Control) BeginInvoke(Delegate, Object[])

Выполняет указанный делегат асинхронно с указанными аргументами в потоке, в котором был создан базовый дескриптор элемента управления. Executes the specified delegate asynchronously with the specified arguments, on the thread that the control’s underlying handle was created on.

(Унаследовано от Control) BringToFront()

Помещает элемент управления в начало z-порядка. Brings the control to the front of the z-order.

(Унаследовано от Control) Contains(Control)

Возвращает значение, указывающее, является ли указанный элемент управления дочерним элементом. Retrieves a value indicating whether the specified control is a child of the control.

(Унаследовано от Control) CreateAccessibilityInstance()

Создает для элемента управления новый объект с поддержкой специальных возможностей. Creates a new accessibility object for the control.

Вызывает принудительное создание видимого элемента управления, включая создание дескриптора и всех видимых дочерних элементов. Forces the creation of the visible control, including the creation of the handle and any visible child controls.

(Унаследовано от Control) CreateControlsInstance()

Создает новый экземпляр коллекции элементов управления для данного элемента управления. Creates a new instance of the control collection for the control.

(Унаследовано от ToolStrip) CreateDefaultItem(String, Image, EventHandler)

Создает объект ToolStripMenuItem с заданным текстом, изображением и обработчиком событий для нового MenuStrip. Creates a ToolStripMenuItem with the specified text, image, and event handler on a new MenuStrip.

Создает объект Graphics для элемента управления. Creates the Graphics for the control.

(Унаследовано от Control) CreateHandle()

Создает дескриптор для элемента управления. Creates a handle for the control.

(Унаследовано от Control) CreateLayoutSettings(ToolStripLayoutStyle)

Задает визуальное представление для объекта ToolStrip. Specifies the visual arrangement for the ToolStrip.

(Унаследовано от ToolStrip) CreateObjRef(Type)

Создает объект, который содержит всю необходимую информацию для создания прокси-сервера, используемого для взаимодействия с удаленным объектом. Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.

(Унаследовано от MarshalByRefObject) DefWndProc(Message)

Отправляет заданное сообщение процедуре окна, используемой по умолчанию. Sends the specified message to the default window procedure.

(Унаследовано от Control) DestroyHandle()

Удаляет дескриптор, связанный с элементом управления. Destroys the handle associated with the control.

(Унаследовано от Control) Dispose()

Освобождает все ресурсы, занятые модулем Component. Releases all resources used by the Component.

(Унаследовано от Component) Dispose(Boolean)

Освобождает неуправляемые ресурсы, используемые объектом ToolStrip, а при необходимости освобождает также управляемые ресурсы. Releases the unmanaged resources used by the ToolStrip and optionally releases the managed resources.

(Унаследовано от ToolStrip) DoDragDrop(Object, DragDropEffects)

Начинает операцию перетаскивания. Begins a drag-and-drop operation.

(Унаследовано от Control) DrawToBitmap(Bitmap, Rectangle)

Поддерживает отрисовку в указанном точечном рисунке. Supports rendering to the specified bitmap.

(Унаследовано от Control) EndInvoke(IAsyncResult)

Получает возвращаемое значение асинхронной операции, представленное переданным объектом IAsyncResult. Retrieves the return value of the asynchronous operation represented by the IAsyncResult passed.

(Унаследовано от Control) Equals(Object)

Определяет, равен ли указанный объект текущему объекту. Determines whether the specified object is equal to the current object.

(Унаследовано от Object) FindForm()

Возвращает форму, в которой находится элемент управления. Retrieves the form that the control is on.

(Унаследовано от Control) Focus()

Устанавливает фокус ввода на элемент управления. Sets input focus to the control.

(Унаследовано от Control) GetAccessibilityObjectById(Int32)

Получает указанный объект AccessibleObject. Retrieves the specified AccessibleObject.

(Унаследовано от Control) GetAutoSizeMode()

Получает значение, указывающее, как будет вести себя элемент управления, когда его свойство AutoSize включено. Retrieves a value indicating how a control will behave when its AutoSize property is enabled.

(Унаследовано от Control) GetChildAtPoint(Point)

Данный метод не применим к этому классу. This method is not relevant for this class.

(Унаследовано от ToolStrip) GetChildAtPoint(Point, GetChildAtPointSkip)

Данный метод не применим к этому классу. This method is not relevant for this class.

(Унаследовано от ToolStrip) GetContainerControl()

Возвращает следующий объект ContainerControl в цепочке родительских элементов управления данного элемента. Returns the next ContainerControl up the control’s chain of parent controls.

(Унаследовано от Control) GetHashCode()

Служит хэш-функцией по умолчанию. Serves as the default hash function.

(Унаследовано от Object) GetItemAt(Int32, Int32)

Возвращает элемент, расположенный в заданной точке с координатами X и Y в клиентской области объекта ToolStrip. Returns the item located at the specified x- and y-coordinates of the ToolStrip client area.

(Унаследовано от ToolStrip) GetItemAt(Point)

Возвращает элемент, расположенный в заданной точке клиентской области объекта ToolStrip. Returns the item located at the specified point in the client area of the ToolStrip.

(Унаследовано от ToolStrip) GetLifetimeService()

Извлекает объект обслуживания во время существования, который управляет политикой времени существования данного экземпляра. Retrieves the current lifetime service object that controls the lifetime policy for this instance.

(Унаследовано от MarshalByRefObject) GetNextControl(Control, Boolean)

Возвращает следующий или предыдущий элемент среди дочерних элементов управления в последовательности клавиши TAB. Retrieves the next control forward or back in the tab order of child controls.

(Унаследовано от Control) GetNextItem(ToolStripItem, ArrowDirection)

Извлекает следующий объект ToolStripItem из заданной опорной точки и перемещает его в указанном направлении. Retrieves the next ToolStripItem from the specified reference point and moving in the specified direction.

(Унаследовано от ToolStrip) GetPreferredSize(Size)

Вычисляет размер прямоугольной области, в которую помещается элемент управления. Retrieves the size of a rectangular area into which a control can be fitted.

(Унаследовано от Control) GetScaledBounds(Rectangle, SizeF, BoundsSpecified)

Читайте также:  Отобразить эскизы вместо значков windows 10

Возвращает границы, внутри которых масштабируется элемент управления. Retrieves the bounds within which the control is scaled.

(Унаследовано от Control) GetScrollState(Int32)

Определяет, установлен ли указанный флаг. Determines whether the specified flag has been set.

(Унаследовано от ScrollableControl) GetService(Type)

Возвращает объект, представляющий службу, предоставляемую классом Component или классом Container. Returns an object that represents a service provided by the Component or by its Container.

(Унаследовано от Component) GetStyle(ControlStyles)

Возвращает значение указанного бита стиля элемента управления для данного элемента управления. Retrieves the value of the specified control style bit for the control.

(Унаследовано от Control) GetTopLevel()

Определяет, находится ли элемент управления на верхнем уровне. Determines if the control is a top-level control.

(Унаследовано от Control) GetType()

Возвращает объект Type для текущего экземпляра. Gets the Type of the current instance.

(Унаследовано от Object) Hide()

Скрывает элемент управления от пользователя. Conceals the control from the user.

(Унаследовано от Control) InitializeLifetimeService()

Получает объект службы времени существования для управления политикой времени существования для этого экземпляра. Obtains a lifetime service object to control the lifetime policy for this instance.

(Унаследовано от MarshalByRefObject) InitLayout()

Вызывается после добавления элемента управления в другой контейнер. Called after the control has been added to another container.

(Унаследовано от Control) Invalidate()

Делает недействительной всю поверхность элемента управления и вызывает его перерисовку. Invalidates the entire surface of the control and causes the control to be redrawn.

(Унаследовано от Control) Invalidate(Boolean)

Делает недействительной конкретную область элемента управления и вызывает отправку сообщения рисования элементу управления. Invalidates a specific region of the control and causes a paint message to be sent to the control. При необходимости объявляет недействительными назначенные элементу управления дочерние элементы. Optionally, invalidates the child controls assigned to the control.

(Унаследовано от Control) Invalidate(Rectangle)

Делает недействительной указанную область элемента управления (добавляет ее к области обновления элемента, которая будет перерисована при следующей операции рисования) и вызывает отправку сообщения рисования элементу управления. Invalidates the specified region of the control (adds it to the control’s update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control.

(Унаследовано от Control) Invalidate(Rectangle, Boolean)

Делает недействительной указанную область элемента управления (добавляет ее к области обновления элемента, которая будет перерисована при следующей операции рисования) и вызывает отправку сообщения рисования элементу управления. Invalidates the specified region of the control (adds it to the control’s update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control. При необходимости объявляет недействительными назначенные элементу управления дочерние элементы. Optionally, invalidates the child controls assigned to the control.

(Унаследовано от Control) Invalidate(Region)

Делает недействительной указанную область элемента управления (добавляет ее к области обновления элемента, которая будет перерисована при следующей операции рисования) и вызывает отправку сообщения рисования элементу управления. Invalidates the specified region of the control (adds it to the control’s update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control.

(Унаследовано от Control) Invalidate(Region, Boolean)

Делает недействительной указанную область элемента управления (добавляет ее к области обновления элемента, которая будет перерисована при следующей операции рисования) и вызывает отправку сообщения рисования элементу управления. Invalidates the specified region of the control (adds it to the control’s update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control. При необходимости объявляет недействительными назначенные элементу управления дочерние элементы. Optionally, invalidates the child controls assigned to the control.

(Унаследовано от Control) Invoke(Delegate)

Выполняет указанный делегат в том потоке, которому принадлежит базовый дескриптор окна элемента управления. Executes the specified delegate on the thread that owns the control’s underlying window handle.

(Унаследовано от Control) Invoke(Delegate, Object[])

Выполняет указанный делегат в том потоке, которому принадлежит основной дескриптор окна элемента управления, с указанным списком аргументов. Executes the specified delegate, on the thread that owns the control’s underlying window handle, with the specified list of arguments.

(Унаследовано от Control) InvokeGotFocus(Control, EventArgs)

Вызывает событие GotFocus для указанного элемента управления. Raises the GotFocus event for the specified control.

(Унаследовано от Control) InvokeLostFocus(Control, EventArgs)

Вызывает событие LostFocus для указанного элемента управления. Raises the LostFocus event for the specified control.

(Унаследовано от Control) InvokeOnClick(Control, EventArgs)

Вызывает событие Click для указанного элемента управления. Raises the Click event for the specified control.

(Унаследовано от Control) InvokePaint(Control, PaintEventArgs)

Вызывает событие Paint для указанного элемента управления. Raises the Paint event for the specified control.

(Унаследовано от Control) InvokePaintBackground(Control, PaintEventArgs)

Вызывает событие PaintBackground для указанного элемента управления. Raises the PaintBackground event for the specified control.

(Унаследовано от Control) IsInputChar(Char)

Определяет, является ли символ входным символом, который распознается элементом. Determines whether a character is an input character that the item recognizes.

(Унаследовано от ToolStrip) IsInputKey(Keys)

Определяет, является ли заданная клавиша обычной клавишей ввода или специальной клавишей, нуждающейся в предварительной обработке. Determines whether the specified key is a regular input key or a special key that requires preprocessing.

(Унаследовано от ToolStrip) LogicalToDeviceUnits(Int32)

Преобразует логическое значение DPI в эквивалентное значение DPI DeviceUnit. Converts a Logical DPI value to its equivalent DeviceUnit DPI value.

(Унаследовано от Control) LogicalToDeviceUnits(Size)

Преобразует размер из логических единиц в единицы устройства путем его масштабирования к текущему DPI и округлением вниз до ближайшего целого значения ширины и высоты. Transforms a size from logical to device units by scaling it for the current DPI and rounding down to the nearest integer value for width and height.

(Унаследовано от Control) MemberwiseClone()

Создает неполную копию текущего объекта Object. Creates a shallow copy of the current Object.

(Унаследовано от Object) MemberwiseClone(Boolean)

Создает неполную копию текущего объекта MarshalByRefObject. Creates a shallow copy of the current MarshalByRefObject object.

(Унаследовано от MarshalByRefObject) NotifyInvalidate(Rectangle)

Вызывает событие Invalidated, чтобы сделать недействительной указанную область элемента управления. Raises the Invalidated event with a specified region of the control to invalidate.

(Унаследовано от Control) OnAutoSizeChanged(EventArgs)

Вызывает событие AutoSizeChanged. Raises the AutoSizeChanged event.

(Унаследовано от Control) OnBackColorChanged(EventArgs)

Вызывает событие BackColorChanged. Raises the BackColorChanged event.

(Унаследовано от Control) OnBackgroundImageChanged(EventArgs)

(Унаследовано от Control) OnBackgroundImageLayoutChanged(EventArgs)

(Унаследовано от Control) OnBeginDrag(EventArgs)

Вызывает событие BeginDrag. Raises the BeginDrag event.

(Унаследовано от ToolStrip) OnBindingContextChanged(EventArgs)

(Унаследовано от Control) OnCausesValidationChanged(EventArgs)

(Унаследовано от Control) OnChangeUICues(UICuesEventArgs)

Вызывает событие ChangeUICues. Raises the ChangeUICues event.

(Унаследовано от Control) OnClick(EventArgs)

Вызывает событие Click. Raises the Click event.

(Унаследовано от Control) OnClientSizeChanged(EventArgs)

(Унаследовано от Control) OnContextMenuChanged(EventArgs)

(Унаследовано от Control) OnContextMenuStripChanged(EventArgs)

(Унаследовано от Control) OnControlAdded(ControlEventArgs)

Вызывает событие ControlAdded. Raises the ControlAdded event.

(Унаследовано от Control) OnControlRemoved(ControlEventArgs)

Вызывает событие ControlRemoved. Raises the ControlRemoved event.

(Унаследовано от Control) OnCreateControl()

Вызывает метод CreateControl(). Raises the CreateControl() method.

(Унаследовано от Control) OnCursorChanged(EventArgs)

Вызывает событие CursorChanged. Raises the CursorChanged event.

(Унаследовано от Control) OnDockChanged(EventArgs)

Вызывает событие DockChanged. Raises the DockChanged event.

(Унаследовано от ToolStrip) OnDoubleClick(EventArgs)

Вызывает событие DoubleClick. Raises the DoubleClick event.

(Унаследовано от Control) OnDpiChangedAfterParent(EventArgs)

(Унаследовано от Control) OnDpiChangedBeforeParent(EventArgs)

(Унаследовано от Control) OnDragDrop(DragEventArgs)

Вызывает событие DragDrop. Raises the DragDrop event.

(Унаследовано от Control) OnDragEnter(DragEventArgs)

Вызывает событие DragEnter. Raises the DragEnter event.

(Унаследовано от Control) OnDragLeave(EventArgs)

Вызывает событие DragLeave. Raises the DragLeave event.

(Унаследовано от Control) OnDragOver(DragEventArgs)

Вызывает событие DragOver. Raises the DragOver event.

(Унаследовано от Control) OnEnabledChanged(EventArgs)

Вызывает событие Enabled. Raises the Enabled event.

(Унаследовано от ToolStrip) OnEndDrag(EventArgs)

Вызывает событие EndDrag. Raises the EndDrag event.

(Унаследовано от ToolStrip) OnEnter(EventArgs)

Вызывает событие Enter. Raises the Enter event.

(Унаследовано от Control) OnFontChanged(EventArgs)

Вызывает событие FontChanged. Raises the FontChanged event.

(Унаследовано от ToolStrip) OnForeColorChanged(EventArgs)

Вызывает событие ForeColorChanged. Raises the ForeColorChanged event.

(Унаследовано от Control) OnGiveFeedback(GiveFeedbackEventArgs)

Вызывает событие GiveFeedback. Raises the GiveFeedback event.

(Унаследовано от Control) OnGotFocus(EventArgs)

Вызывает событие GotFocus. Raises the GotFocus event.

(Унаследовано от Control) OnHandleCreated(EventArgs)

Вызывает событие HandleCreated. Raises the HandleCreated event.

(Унаследовано от ToolStrip) OnHandleDestroyed(EventArgs)

Вызывает событие HandleDestroyed. Raises the HandleDestroyed event.

(Унаследовано от ToolStrip) OnHelpRequested(HelpEventArgs)

Вызывает событие HelpRequested. Raises the HelpRequested event.

(Унаследовано от Control) OnImeModeChanged(EventArgs)

Вызывает событие ImeModeChanged. Raises the ImeModeChanged event.

(Унаследовано от Control) OnInvalidated(InvalidateEventArgs)

Вызывает событие Invalidated. Raises the Invalidated event.

(Унаследовано от ToolStrip) OnItemAdded(ToolStripItemEventArgs)

Вызывает событие ItemAdded. Raises the ItemAdded event.

(Унаследовано от ToolStrip) OnItemClicked(ToolStripItemClickedEventArgs)

Вызывает событие ItemClicked. Raises the ItemClicked event.

(Унаследовано от ToolStrip) OnItemRemoved(ToolStripItemEventArgs)

Вызывает событие ItemRemoved. Raises the ItemRemoved event.

(Унаследовано от ToolStrip) OnKeyDown(KeyEventArgs)

Вызывает событие KeyDown. Raises the KeyDown event.

(Унаследовано от Control) OnKeyPress(KeyPressEventArgs)

Вызывает событие KeyPress. Raises the KeyPress event.

(Унаследовано от Control) OnKeyUp(KeyEventArgs)

Вызывает событие KeyUp. Raises the KeyUp event.

(Унаследовано от Control) OnLayout(LayoutEventArgs)

Вызывает событие Layout. Raises the Layout event.

(Унаследовано от ToolStrip) OnLayoutCompleted(EventArgs)

Вызывает событие LayoutCompleted. Raises the LayoutCompleted event.

(Унаследовано от ToolStrip) OnLayoutStyleChanged(EventArgs)

(Унаследовано от ToolStrip) OnLeave(EventArgs)

Вызывает событие Leave. Raises the Leave event.

(Унаследовано от ToolStrip) OnLocationChanged(EventArgs)

Вызывает событие LocationChanged. Raises the LocationChanged event.

(Унаследовано от Control) OnLostFocus(EventArgs)

Вызывает событие LostFocus. Raises the LostFocus event.

(Унаследовано от ToolStrip) OnMarginChanged(EventArgs)

Вызывает событие MarginChanged. Raises the MarginChanged event.

(Унаследовано от Control) OnMenuActivate(EventArgs)

Вызывает событие MenuActivate. Raises the MenuActivate event.

Вызывает событие MenuDeactivate. Raises the MenuDeactivate event.

(Унаследовано от ToolStrip) OnMouseClick(MouseEventArgs)

Вызывает событие MouseClick. Raises the MouseClick event.

(Унаследовано от Control) OnMouseDoubleClick(MouseEventArgs)

Вызывает событие MouseDoubleClick. Raises the MouseDoubleClick event.

(Унаследовано от Control) OnMouseDown(MouseEventArgs)

Вызывает событие MouseDown. Raises the MouseDown event.

(Унаследовано от ToolStrip) OnMouseEnter(EventArgs)

Вызывает событие MouseEnter. Raises the MouseEnter event.

(Унаследовано от Control) OnMouseHover(EventArgs)

Вызывает событие MouseHover. Raises the MouseHover event.

(Унаследовано от Control) OnMouseLeave(EventArgs)

Вызывает событие MouseLeave. Raises the MouseLeave event.

(Унаследовано от ToolStrip) OnMouseMove(MouseEventArgs)

Вызывает событие MouseMove. Raises the MouseMove event.

(Унаследовано от ToolStrip) OnMouseUp(MouseEventArgs)

Вызывает событие MouseUp. Raises the MouseUp event.

(Унаследовано от ToolStrip) OnMouseWheel(MouseEventArgs)

Вызывает событие MouseWheel. Raises the MouseWheel event.

(Унаследовано от ScrollableControl) OnMove(EventArgs)

Вызывает событие Move. Raises the Move event.

(Унаследовано от Control) OnNotifyMessage(Message)

Уведомляет элемент управления о сообщениях Windows. Notifies the control of Windows messages.

(Унаследовано от Control) OnPaddingChanged(EventArgs)

Вызывает событие PaddingChanged. Raises the PaddingChanged event.

(Унаследовано от ScrollableControl) OnPaint(PaintEventArgs)

Вызывает событие Paint. Raises the Paint event.

(Унаследовано от ToolStrip) OnPaintBackground(PaintEventArgs)

Вызывает событие Paint для фона элемента ToolStrip. Raises the Paint event for the ToolStrip background.

(Унаследовано от ToolStrip) OnPaintGrip(PaintEventArgs)

Вызывает событие PaintGrip. Raises the PaintGrip event.

(Унаследовано от ToolStrip) OnParentBackColorChanged(EventArgs)

Вызывает событие BackColorChanged при изменении значения свойства BackColor контейнера элемента управления. Raises the BackColorChanged event when the BackColor property value of the control’s container changes.

(Унаследовано от Control) OnParentBackgroundImageChanged(EventArgs)

Вызывает событие BackgroundImageChanged при изменении значения свойства BackgroundImage контейнера элемента управления. Raises the BackgroundImageChanged event when the BackgroundImage property value of the control’s container changes.

(Унаследовано от Control) OnParentBindingContextChanged(EventArgs)

Вызывает событие BindingContextChanged при изменении значения свойства BindingContext контейнера элемента управления. Raises the BindingContextChanged event when the BindingContext property value of the control’s container changes.

(Унаследовано от Control) OnParentChanged(EventArgs)

Вызывает событие ParentChanged. Raises the ParentChanged event.

(Унаследовано от Control) OnParentCursorChanged(EventArgs)

Вызывает событие CursorChanged. Raises the CursorChanged event.

(Унаследовано от Control) OnParentEnabledChanged(EventArgs)

Вызывает событие EnabledChanged при изменении значения свойства Enabled контейнера элемента управления. Raises the EnabledChanged event when the Enabled property value of the control’s container changes.

(Унаследовано от Control) OnParentFontChanged(EventArgs)

Вызывает событие FontChanged при изменении значения свойства Font контейнера элемента управления. Raises the FontChanged event when the Font property value of the control’s container changes.

(Унаследовано от Control) OnParentForeColorChanged(EventArgs)

Вызывает событие ForeColorChanged при изменении значения свойства ForeColor контейнера элемента управления. Raises the ForeColorChanged event when the ForeColor property value of the control’s container changes.

(Унаследовано от Control) OnParentRightToLeftChanged(EventArgs)

Вызывает событие RightToLeftChanged при изменении значения свойства RightToLeft контейнера элемента управления. Raises the RightToLeftChanged event when the RightToLeft property value of the control’s container changes.

(Унаследовано от Control) OnParentVisibleChanged(EventArgs)

Вызывает событие VisibleChanged при изменении значения свойства Visible контейнера элемента управления. Raises the VisibleChanged event when the Visible property value of the control’s container changes.

(Унаследовано от Control) OnPreviewKeyDown(PreviewKeyDownEventArgs)

Вызывает событие PreviewKeyDown. Raises the PreviewKeyDown event.

(Унаследовано от Control) OnPrint(PaintEventArgs)

Вызывает событие Paint. Raises the Paint event.

(Унаследовано от Control) OnQueryContinueDrag(QueryContinueDragEventArgs)

(Унаследовано от Control) OnRegionChanged(EventArgs)

Вызывает событие RegionChanged. Raises the RegionChanged event.

(Унаследовано от Control) OnRendererChanged(EventArgs)

Вызывает событие RendererChanged. Raises the RendererChanged event.

(Унаследовано от ToolStrip) OnResize(EventArgs)

Вызывает событие Resize. Raises the Resize event.

(Унаследовано от Control) OnRightToLeftChanged(EventArgs)

(Унаследовано от ToolStrip) OnScroll(ScrollEventArgs)

Вызывает событие Scroll. Raises the Scroll event.

(Унаследовано от ToolStrip) OnSizeChanged(EventArgs)

Вызывает событие SizeChanged. Raises the SizeChanged event.

(Унаследовано от Control) OnStyleChanged(EventArgs)

Вызывает событие StyleChanged. Raises the StyleChanged event.

(Унаследовано от Control) OnSystemColorsChanged(EventArgs)

(Унаследовано от Control) OnTabIndexChanged(EventArgs)

Вызывает событие TabIndexChanged. Raises the TabIndexChanged event.

(Унаследовано от Control) OnTabStopChanged(EventArgs)

Вызывает событие TabStopChanged. Raises the TabStopChanged event.

(Унаследовано от ToolStrip) OnTextChanged(EventArgs)

Вызывает событие TextChanged. Raises the TextChanged event.

(Унаследовано от Control) OnValidated(EventArgs)

Вызывает событие Validated. Raises the Validated event.

(Унаследовано от Control) OnValidating(CancelEventArgs)

Вызывает событие Validating. Raises the Validating event.

(Унаследовано от Control) OnVisibleChanged(EventArgs)

Вызывает событие VisibleChanged. Raises the VisibleChanged event.

(Унаследовано от ToolStrip) PerformLayout()

Вызывает в элементе управления принудительное применение логики макета ко всем его дочерним элементам управления. Forces the control to apply layout logic to all its child controls.

(Унаследовано от Control) PerformLayout(Control, String)

Вызывает в элементе управления принудительное применение логики макета ко всем его дочерним элементам управления. Forces the control to apply layout logic to all its child controls.

(Унаследовано от Control) PointToClient(Point)

Вычисляет местоположение указанной точки экрана в клиентских координатах. Computes the location of the specified screen point into client coordinates.

(Унаследовано от Control) PointToScreen(Point)

Вычисляет местоположение указанной точки клиента в экранных координатах. Computes the location of the specified client point into screen coordinates.

(Унаследовано от Control) PreProcessControlMessage(Message)

Выполняет предварительную обработку клавиатурных или входящих сообщений в цикле обработки сообщений перед их отправкой. Preprocesses keyboard or input messages within the message loop before they are dispatched.

(Унаследовано от Control) PreProcessMessage(Message)

Выполняет предварительную обработку клавиатурных или входящих сообщений в цикле обработки сообщений перед их отправкой. Preprocesses keyboard or input messages within the message loop before they are dispatched.

(Унаследовано от Control) ProcessCmdKey(Message, Keys)

Обрабатывает клавишу для команд. Processes a command key.

Обрабатывает символ диалогового окна. Processes a dialog character.

(Унаследовано от Control) ProcessDialogKey(Keys)

Обрабатывает нажатие кнопки диалогового окна. Processes a dialog box key.

(Унаследовано от ToolStrip) ProcessKeyEventArgs(Message)

Обрабатывает сообщение о нажатии клавиши и создает соответствующие события элемента управления. Processes a key message and generates the appropriate control events.

(Унаследовано от Control) ProcessKeyMessage(Message)

Обрабатывает сообщение клавиатуры. Processes a keyboard message.

(Унаследовано от Control) ProcessKeyPreview(Message)

Выполняет предварительный просмотр сообщения клавиатуры. Previews a keyboard message.

(Унаследовано от Control) ProcessMnemonic(Char)

Обрабатывает назначенный символ. Processes a mnemonic character.

(Унаследовано от ToolStrip) RaiseDragEvent(Object, DragEventArgs)

Вызывает соответствующее событие перетаскивания. Raises the appropriate drag event.

(Унаследовано от Control) RaiseKeyEvent(Object, KeyEventArgs)

Вызывает соответствующее событие клавиши. Raises the appropriate key event.

(Унаследовано от Control) RaiseMouseEvent(Object, MouseEventArgs)

Вызывает соответствующее событие мыши. Raises the appropriate mouse event.

(Унаследовано от Control) RaisePaintEvent(Object, PaintEventArgs)

Вызывает соответствующее событие рисования. Raises the appropriate paint event.

(Унаследовано от Control) RecreateHandle()

Вызывает повторное создание дескриптора элемента управления. Forces the re-creation of the handle for the control.

(Унаследовано от Control) RectangleToClient(Rectangle)

Вычисляет размер и местоположение указанной прямоугольной области экрана в клиентских координатах. Computes the size and location of the specified screen rectangle in client coordinates.

(Унаследовано от Control) RectangleToScreen(Rectangle)

Вычисляет размер и местоположение указанной клиентской области (в виде прямоугольника) в экранных координатах. Computes the size and location of the specified client rectangle in screen coordinates.

(Унаследовано от Control) Refresh()

Принудительно создает условия, при которых элемент управления делает недоступной свою клиентскую область и немедленно перерисовывает себя и все дочерние элементы. Forces the control to invalidate its client area and immediately redraw itself and any child controls.

(Унаследовано от Control) RescaleConstantsForDpi(Int32, Int32)

При переопределении в производном классе реализует масштабирование всех магических чисел, которые используются при рисовании в элементе управления. When overridden in a derived class, handles the rescaling of any magic numbers that are used in control painting.

(Унаследовано от ToolStrip) ResetBackColor()

Восстанавливает значение по умолчанию свойства BackColor. Resets the BackColor property to its default value.

(Унаследовано от Control)

Читайте также:  Ustanovka windows na acer aspire one
ResetBindings()

Вызывает в элементе управления, привязанном к компоненту BindingSource, повторное считывание всех элементов списка и обновление их отображаемых значений. Causes a control bound to the BindingSource to reread all the items in the list and refresh their displayed values.

(Унаследовано от Control) ResetCursor()

Восстанавливает значение по умолчанию свойства Cursor. Resets the Cursor property to its default value.

(Унаследовано от Control) ResetFont()

Восстанавливает значение по умолчанию свойства Font. Resets the Font property to its default value.

(Унаследовано от Control) ResetForeColor()

Восстанавливает значение по умолчанию свойства ForeColor. Resets the ForeColor property to its default value.

(Унаследовано от Control) ResetImeMode()

Восстанавливает значение по умолчанию свойства ImeMode. Resets the ImeMode property to its default value.

(Унаследовано от Control) ResetMinimumSize()

Данный метод не применим к этому классу. This method is not relevant for this class.

(Унаследовано от ToolStrip) ResetMouseEventArgs()

Сбрасывает элемент управления в дескриптор события MouseLeave. Resets the control to handle the MouseLeave event.

(Унаследовано от Control) ResetRightToLeft()

Восстанавливает значение по умолчанию свойства RightToLeft. Resets the RightToLeft property to its default value.

(Унаследовано от Control) ResetText()

Восстанавливает значение по умолчанию свойства Text (Empty). Resets the Text property to its default value (Empty).

(Унаследовано от Control) RestoreFocus()

Управляет возвращаемым расположением фокуса. Controls the return location of the focus.

(Унаследовано от ToolStrip) ResumeLayout()

Возобновляет обычную логику макета. Resumes usual layout logic.

(Унаследовано от Control) ResumeLayout(Boolean)

Возобновляет обычную логику макета, дополнительно осуществляя немедленное отображение отложенных запросов макета. Resumes usual layout logic, optionally forcing an immediate layout of pending layout requests.

(Унаследовано от Control) RtlTranslateAlignment(ContentAlignment)

Преобразует указанный объект ContentAlignment в соответствующий объект ContentAlignment, чтобы обеспечить поддержку текста, читаемого справа налево. Converts the specified ContentAlignment to the appropriate ContentAlignment to support right-to-left text.

(Унаследовано от Control) RtlTranslateAlignment(HorizontalAlignment)

Преобразует указанный объект HorizontalAlignment в соответствующий объект HorizontalAlignment, чтобы обеспечить поддержку текста, читаемого справа налево. Converts the specified HorizontalAlignment to the appropriate HorizontalAlignment to support right-to-left text.

(Унаследовано от Control) RtlTranslateAlignment(LeftRightAlignment)

Преобразует указанный объект LeftRightAlignment в соответствующий объект LeftRightAlignment, чтобы обеспечить поддержку текста, читаемого справа налево. Converts the specified LeftRightAlignment to the appropriate LeftRightAlignment to support right-to-left text.

(Унаследовано от Control) RtlTranslateContent(ContentAlignment)

Преобразует указанный объект ContentAlignment в соответствующий объект ContentAlignment, чтобы обеспечить поддержку текста, читаемого справа налево. Converts the specified ContentAlignment to the appropriate ContentAlignment to support right-to-left text.

(Унаследовано от Control) RtlTranslateHorizontal(HorizontalAlignment)

Преобразует указанный объект HorizontalAlignment в соответствующий объект HorizontalAlignment, чтобы обеспечить поддержку текста, читаемого справа налево. Converts the specified HorizontalAlignment to the appropriate HorizontalAlignment to support right-to-left text.

(Унаследовано от Control) RtlTranslateLeftRight(LeftRightAlignment)

Преобразует указанный объект LeftRightAlignment в соответствующий объект LeftRightAlignment, чтобы обеспечить поддержку текста, читаемого справа налево. Converts the specified LeftRightAlignment to the appropriate LeftRightAlignment to support right-to-left text.

(Унаследовано от Control) Scale(Single)

Масштабирует элемент управления и любые его дочерние элементы. Scales the control and any child controls.

(Унаследовано от Control) Scale(Single, Single)

Масштабирует весь элемент управления и любые его дочерние элементы. Scales the entire control and any child controls.

(Унаследовано от Control) Scale(SizeF)

Масштабирует элемент управления и любые его дочерние элементы с использованием заданного коэффициента масштабирования. Scales the control and all child controls by the specified scaling factor.

(Унаследовано от Control) ScaleBitmapLogicalToDevice(Bitmap)

Масштабирует логическое значение точечного рисунка в эквивалентное значение единицы измерения устройства при изменении настройки DPI. Scales a logical bitmap value to it’s equivalent device unit value when a DPI change occurs.

(Унаследовано от Control) ScaleControl(SizeF, BoundsSpecified)

Выполняет масштабирование расположения, размеров, заполнения и полей элемента управления. Scales a control’s location, size, padding and margin.

(Унаследовано от ScrollableControl) ScaleCore(Single, Single)

Данный метод не применим к этому классу. This method is not relevant for this class.

(Унаследовано от ScrollableControl) ScrollControlIntoView(Control)

Прокручивает заданный дочерний элемент управления в элементе управления, позволяющем выполнять просмотр и автоматическую прокрутку. Scrolls the specified child control into view on an auto-scroll enabled control.

(Унаследовано от ScrollableControl) ScrollToControl(Control)

Вычисляет смещение прокрутки в заданном дочернем элементе управления. Calculates the scroll offset to the specified child control.

(Унаследовано от ScrollableControl) Select()

Активирует элемент управления. Activates the control.

(Унаследовано от Control) Select(Boolean, Boolean)

Активирует дочерний элемент управления. Activates a child control. При необходимости указывает направление для выбора элементов управления в последовательности табуляции. Optionally specifies the direction in the tab order to select the control from.

(Унаследовано от ToolStrip) SelectNextControl(Control, Boolean, Boolean, Boolean, Boolean)

Активирует следующий элемент управления. Activates the next control.

(Унаследовано от Control) SendToBack()

Отправляет элемент управления в конец z-порядка. Sends the control to the back of the z-order.

(Унаследовано от Control) SetAutoScrollMargin(Int32, Int32)

Данный метод не применим к этому классу. This method is not relevant for this class.

(Унаследовано от ToolStrip) SetAutoSizeMode(AutoSizeMode)

Задает значение, указывающее, как будет вести себя элемент управления, когда его свойство AutoSize включено. Sets a value indicating how a control will behave when its AutoSize property is enabled.

(Унаследовано от Control) SetBounds(Int32, Int32, Int32, Int32)

Задает границы элемента управления для указанного местоположения и размера. Sets the bounds of the control to the specified location and size.

(Унаследовано от Control) SetBounds(Int32, Int32, Int32, Int32, BoundsSpecified)

Задает указанные границы элемента управления для указанного местоположения и размера. Sets the specified bounds of the control to the specified location and size.

(Унаследовано от Control) SetBoundsCore(Int32, Int32, Int32, Int32, BoundsSpecified)

Задает указанные границы данного элемента управления. Performs the work of setting the specified bounds of this control.

(Унаследовано от ToolStrip) SetClientSizeCore(Int32, Int32)

Задает размер клиентской области элемента управления. Sets the size of the client area of the control.

(Унаследовано от Control) SetDisplayedItems()

Сбрасывает коллекцию отображенных элементов и элементов переполнения после создания структуры. Resets the collection of displayed and overflow items after a layout is done.

(Унаследовано от ToolStrip) SetDisplayRectLocation(Int32, Int32)

Помещает отображаемое окно в заданное значение. Positions the display window to the specified value.

(Унаследовано от ScrollableControl) SetItemLocation(ToolStripItem, Point)

Привязывает объект ToolStripItem к определенному месту на ToolStrip. Anchors a ToolStripItem to a particular place on a ToolStrip.

(Унаследовано от ToolStrip) SetScrollState(Int32, Boolean)

Устанавливает указанный флаг состояния прокрутки. Sets the specified scroll state flag.

(Унаследовано от ScrollableControl) SetStyle(ControlStyles, Boolean)

Задает указанный флаг ControlStyles либо в значение true , либо в значение false . Sets a specified ControlStyles flag to either true or false .

(Унаследовано от Control) SetTopLevel(Boolean)

Определяет элемент управления как элемент верхнего уровня. Sets the control as the top-level control.

(Унаследовано от Control) SetVisibleCore(Boolean)

Извлекает значение, которое задает объект ToolStripItem в указанном состоянии видимости. Retrieves a value that sets the ToolStripItem to the specified visibility state.

(Унаследовано от ToolStrip) Show()

Отображает элемент управления. Displays the control to the user.

(Унаследовано от Control) SizeFromClientSize(Size)

Определяет размер всего элемента управления по высоте и ширине его клиентской области. Determines the size of the entire control from the height and width of its client area.

(Унаследовано от Control) SuspendLayout()

Временно приостанавливает логику макета для элемента управления. Temporarily suspends the layout logic for the control.

(Унаследовано от Control) ToString()

Возвращает строку, представляющую элемент управления ToolStrip. Returns a string that represents the ToolStrip control.

(Унаследовано от ToolStrip) Update()

Вызывает перерисовку элементом управления недопустимых областей клиентской области. Causes the control to redraw the invalidated regions within its client area.

(Унаследовано от Control) UpdateBounds()

Обновляет границы элемента управления с учетом текущего размера и местоположения. Updates the bounds of the control with the current size and location.

(Унаследовано от Control) UpdateBounds(Int32, Int32, Int32, Int32)

Обновляет границы элемента управления с учетом указанного размера и местоположения. Updates the bounds of the control with the specified size and location.

(Унаследовано от Control) UpdateBounds(Int32, Int32, Int32, Int32, Int32, Int32)

Обновляет границы элемента управления с учетом указанного размера, местоположения и клиентского размера. Updates the bounds of the control with the specified size, location, and client size.

(Унаследовано от Control) UpdateStyles()

Вызывает принудительное повторное применение назначенных стилей к элементу управления. Forces the assigned styles to be reapplied to the control.

(Унаследовано от Control) UpdateZOrder()

Обновляет элемент управления в z-порядке его родительского элемента управления. Updates the control in its parent’s z-order.

(Унаследовано от Control) WndProc(Message)

Обрабатывает сообщения Windows. Processes Windows messages.

События

Происходит при изменении свойства AutoSize. Occurs when the AutoSize property has changed.

(Унаследовано от ToolStrip) BackColorChanged

Происходит при изменении значения свойства BackColor. Occurs when the value of the BackColor property changes.

(Унаследовано от Control) BackgroundImageChanged

Происходит при изменении значения свойства BackgroundImage. Occurs when the value of the BackgroundImage property changes.

(Унаследовано от Control) BackgroundImageLayoutChanged

Происходит при изменении свойства BackgroundImageLayout. Occurs when the BackgroundImageLayout property changes.

(Унаследовано от Control) BeginDrag

Происходит, когда пользователь начинает перетаскивание элемента управления ToolStrip. Occurs when the user begins to drag the ToolStrip control.

(Унаследовано от ToolStrip) BindingContextChanged

Происходит при изменении значения свойства BindingContext. Occurs when the value of the BindingContext property changes.

(Унаследовано от Control) CausesValidationChanged

Происходит при изменении свойства CausesValidation. Occurs when the CausesValidation property changes.

(Унаследовано от ToolStrip) ChangeUICues

Происходит при получении сигналов на изменение от фокуса или клавиатурного интерфейса. Occurs when the focus or keyboard user interface (UI) cues change.

(Унаследовано от Control) Click

Происходит при щелчке элемента управления. Occurs when the control is clicked.

(Унаследовано от Control) ClientSizeChanged

Происходит при изменении значения свойства ClientSize. Occurs when the value of the ClientSize property changes.

(Унаследовано от Control) ContextMenuChanged

Происходит при изменении значения свойства ContextMenu. Occurs when the value of the ContextMenu property changes.

(Унаследовано от Control) ContextMenuStripChanged

Происходит при изменении значения свойства ContextMenuStrip. Occurs when the value of the ContextMenuStrip property changes.

(Унаследовано от Control) ControlAdded

Данное событие не применимо к этому классу. This event is not relevant for this class.

(Унаследовано от ToolStrip) ControlRemoved

Данное событие не применимо к этому классу. This event is not relevant for this class.

(Унаследовано от ToolStrip) CursorChanged

Происходит при изменении значения свойства Cursor. Occurs when the value of the Cursor property changes.

(Унаследовано от ToolStrip) Disposed

Возникает при удалении компонента путем вызова метода Dispose(). Occurs when the component is disposed by a call to the Dispose() method.

(Унаследовано от Component) DockChanged

Происходит при изменении значения свойства Dock. Occurs when the value of the Dock property changes.

(Унаследовано от Control) DoubleClick

Происходит при двойном щелчке элемента управления. Occurs when the control is double-clicked.

(Унаследовано от Control) DpiChangedAfterParent

Возникает, когда настройка DPI для элемента управления изменяется программным образом после изменения DPI связанного родительского элемента управления или формы. Occurs when the DPI setting for a control is changed programmatically after the DPI of its parent control or form has changed.

(Унаследовано от Control) DpiChangedBeforeParent

Возникает, когда настройка DPI для элемента управления изменяется программным образом, прежде чем возникает событие изменения DPI для соответствующего родительского элемента управления или формы. Occurs when the DPI setting for a control is changed programmatically before a DPI change event for its parent control or form has occurred.

(Унаследовано от Control) DragDrop

Вызывается при завершении операции перетаскивания. Occurs when a drag-and-drop operation is completed.

(Унаследовано от Control) DragEnter

Происходит, когда объект перетаскивается в границы элемента управления. Occurs when an object is dragged into the control’s bounds.

(Унаследовано от Control) DragLeave

Вызывается, когда объект перетаскивается за пределы элемента управления. Occurs when an object is dragged out of the control’s bounds.

(Унаследовано от Control) DragOver

Происходит, когда объект перетаскивается через границу элемента управления. Occurs when an object is dragged over the control’s bounds.

(Унаследовано от Control) EnabledChanged

Происходит, если значение свойства Enabled было изменено. Occurs when the Enabled property value has changed.

(Унаследовано от Control) EndDrag

Происходит в момент, когда пользователь завершает перетаскивание элемента управления ToolStrip. Occurs when the user stops dragging the ToolStrip control.

(Унаследовано от ToolStrip) Enter

Происходит при входе в элемент управления. Occurs when the control is entered.

(Унаследовано от Control) FontChanged

Происходит при изменении значения свойства Font. Occurs when the Font property value changes.

(Унаследовано от Control) ForeColorChanged

Происходит при изменении значения свойства ForeColor. Occurs when the value of the ForeColor property changes.

(Унаследовано от ToolStrip) GiveFeedback

Вызывается при выполнении операции перетаскивания. Occurs during a drag operation.

(Унаследовано от Control) GotFocus

Вызывается при получении фокуса элементом управления. Occurs when the control receives focus.

(Унаследовано от Control) HandleCreated

Происходит при создании дескриптора для элемента управления. Occurs when a handle is created for the control.

(Унаследовано от Control) HandleDestroyed

Происходит в процессе удаления дескриптора элемента управления. Occurs when the control’s handle is in the process of being destroyed.

(Унаследовано от Control) HelpRequested

Происходит при запросе справки для элемента управления. Occurs when the user requests help for a control.

(Унаследовано от Control) ImeModeChanged

Происходит при изменении свойства ImeMode. Occurs when the ImeMode property has changed.

(Унаследовано от Control) Invalidated

Происходит, когда для отображения элемента управления требуется перерисовка. Occurs when a control’s display requires redrawing.

(Унаследовано от Control) ItemAdded

Происходит при добавлении нового объекта ToolStripItem в ToolStripItemCollection. Occurs when a new ToolStripItem is added to the ToolStripItemCollection.

(Унаследовано от ToolStrip) ItemClicked

Происходит при щелчке объекта ToolStripItem. Occurs when the ToolStripItem is clicked.

(Унаследовано от ToolStrip) ItemRemoved

Происходит при удалении объекта ToolStripItem из ToolStripItemCollection. Occurs when a ToolStripItem is removed from the ToolStripItemCollection.

(Унаследовано от ToolStrip) KeyDown

Происходит при нажатии клавиши, если элемент управления имеет фокус. Occurs when a key is pressed while the control has focus.

(Унаследовано от Control) KeyPress

Происходит при нажатии клавиши с буквой, Occurs when a character. пробела или клавиши BACKSPACE, если фокус находится в элементе управления. space or backspace key is pressed while the control has focus.

(Унаследовано от Control) KeyUp

Происходит, когда отпускается клавиша, если элемент управления имеет фокус. Occurs when a key is released while the control has focus.

(Унаследовано от Control) Layout

Происходит, когда необходимо изменить позицию дочерних элементов управления данного элемента управления. Occurs when a control should reposition its child controls.

(Унаследовано от Control) LayoutCompleted

Происходит после завершения создания структуры ToolStrip. Occurs when the layout of the ToolStrip is complete.

(Унаследовано от ToolStrip) LayoutStyleChanged

Происходит при изменении значения свойства LayoutStyle. Occurs when the value of the LayoutStyle property changes.

(Унаследовано от ToolStrip) Leave

Происходит, когда фокус ввода покидает элемент управления. Occurs when the input focus leaves the control.

(Унаследовано от Control) LocationChanged

Происходит, если значение свойства Location было изменено. Occurs when the Location property value has changed.

(Унаследовано от Control) LostFocus

Происходит при потере фокуса элементом управления. Occurs when the control loses focus.

(Унаследовано от Control) MarginChanged

Происходит при изменении поля элемента управления. Occurs when the control’s margin changes.

(Унаследовано от Control) MenuActivate

Происходит, когда пользователь получает доступ к меню с помощью клавиатуры или мыши. Occurs when the user accesses the menu with the keyboard or mouse.

Происходит при деактивации объекта MenuStrip. Occurs when the MenuStrip is deactivated.

Происходит при потере захвата мыши элементом управления. Occurs when the control loses mouse capture.

(Унаследовано от Control) MouseClick

Вызывается при щелчке мышью элемента управления. Occurs when the control is clicked by the mouse.

(Унаследовано от Control) MouseDoubleClick

Вызывается при двойном щелчке мышью элемента управления. Occurs when the control is double clicked by the mouse.

(Унаследовано от Control) MouseDown

Происходит при нажатии кнопки мыши, если указатель мыши находится на элементе управления. Occurs when the mouse pointer is over the control and a mouse button is pressed.

(Унаследовано от Control) MouseEnter

Происходит, когда указатель мыши оказывается на элементе управления. Occurs when the mouse pointer enters the control.

(Унаследовано от Control) MouseHover

Происходит, когда указатель мыши задерживается на элементе управления. Occurs when the mouse pointer rests on the control.

(Унаследовано от Control) MouseLeave

Происходит, когда указатель мыши покидает элемент управления. Occurs when the mouse pointer leaves the control.

(Унаследовано от Control) MouseMove

Происходит при перемещении указателя мыши по элементу управления. Occurs when the mouse pointer is moved over the control.

(Унаследовано от Control) MouseUp

Происходит при отпускании кнопки мыши, когда указатель мыши находится на элементе управления. Occurs when the mouse pointer is over the control and a mouse button is released.

(Унаследовано от Control) MouseWheel

Происходит при прокручивании колеса мыши, если данный элемент управления находится в фокусе. Occurs when the mouse wheel moves while the control has focus.

(Унаследовано от Control) Move

Происходит при перемещении элемента управления. Occurs when the control is moved.

(Унаследовано от Control) PaddingChanged

Генерируется при изменении заполнения элемента управления. Occurs when the control’s padding changes.

(Унаследовано от Control) Paint

Происходит при перерисовке элемента управления. Occurs when the control is redrawn.

(Унаследовано от Control) PaintGrip

Происходит при прорисовке маркера перемещения объекта ToolStrip. Occurs when the ToolStrip move handle is painted.

(Унаследовано от ToolStrip) ParentChanged

Происходит при изменении значения свойства Parent. Occurs when the Parent property value changes.

(Унаследовано от Control) PreviewKeyDown

Генерируется перед событием KeyDown при нажатии клавиши, когда элемент управления имеет фокус. Occurs before the KeyDown event when a key is pressed while focus is on this control.

(Унаследовано от Control) QueryAccessibilityHelp

Происходит, когда объект AccessibleObject предоставляет справку для приложений со специальными возможностями. Occurs when AccessibleObject is providing help to accessibility applications.

(Унаследовано от Control) QueryContinueDrag

Происходит во время операции перетаскивания и позволяет источнику перетаскивания определить, следует ли отменить эту операцию. Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop operation should be canceled.

(Унаследовано от Control) RegionChanged

Происходит при изменении значения свойства Region. Occurs when the value of the Region property changes.

(Унаследовано от Control) RendererChanged

Происходит при изменении значения свойства Renderer. Occurs when the value of the Renderer property changes.

(Унаследовано от ToolStrip) Resize

Происходит при изменении размеров элемента управления. Occurs when the control is resized.

(Унаследовано от Control) RightToLeftChanged

Происходит при изменении значения свойства RightToLeft. Occurs when the RightToLeft property value changes.

(Унаследовано от Control) Scroll

Происходит в том случае, если пользователь или программа выполняет прокрутку в клиентской области. Occurs when the user or code scrolls through the client area.

(Унаследовано от ScrollableControl) SizeChanged

Происходит при изменении значения свойства Size. Occurs when the Size property value changes.

(Унаследовано от Control) StyleChanged

Происходит при изменении стиля элемента управления. Occurs when the control style changes.

(Унаследовано от Control) SystemColorsChanged

Происходит при изменении системных цветов. Occurs when the system colors change.

(Унаследовано от Control) TabIndexChanged

Происходит при изменении значения свойства TabIndex. Occurs when the TabIndex property value changes.

(Унаследовано от Control) TabStopChanged

Происходит при изменении значения свойства TabStop. Occurs when the TabStop property value changes.

(Унаследовано от Control) TextChanged

Происходит при изменении значения свойства Text. Occurs when the Text property value changes.

(Унаследовано от Control) Validated

Происходит по завершении проверки элемента управления. Occurs when the control is finished validating.

(Унаследовано от Control) Validating

Возникает при проверке действительности элемента управления. Occurs when the control is validating.

(Унаследовано от Control) VisibleChanged

Происходит при изменении значения свойства Visible. Occurs when the Visible property value changes.

(Унаследовано от Control)

Явные реализации интерфейса

Вызывает событие DragDrop. Raises the DragDrop event.

(Унаследовано от Control) IDropTarget.OnDragEnter(DragEventArgs)

Вызывает событие DragEnter. Raises the DragEnter event.

(Унаследовано от Control) IDropTarget.OnDragLeave(EventArgs)

Вызывает событие DragLeave. Raises the DragLeave event.

(Унаследовано от Control) IDropTarget.OnDragOver(DragEventArgs)

Вызывает событие DragOver. Raises the DragOver event.

Оцените статью