Элемент управления TextBox (Windows Forms) TextBox Control (Windows Forms)
Windows Forms текстовые поля используются для получения входных данных от пользователя или для вывода текста. Windows Forms text boxes are used to get input from the user or to display text. TextBox Элемент управления обычно используется для редактируемого текста, хотя его также можно сделать доступным только для чтения. The TextBox control is generally used for editable text, although it can also be made read-only. Текстовые поля могут отображать несколько строк, переносить текст в размер элемента управления и добавлять базовое форматирование. Text boxes can display multiple lines, wrap text to the size of the control, and add basic formatting. TextBox Элемент управления допускает один формат текста, отображаемого или вводимых в элементе управления. The TextBox control allows a single format for text displayed or entered in the control.
в этом разделе In This Section
Общие сведения об элементе управления TextBox TextBox Control Overview
Описание элемента управления, его основных возможностей и свойств. Explains what this control is and its key features and properties.
Практическое руководство. Управление положением курсора в элементе управления TextBox в Windows Forms How to: Control the Insertion Point in a Windows Forms TextBox Control
Инструкции по указанию места, где точка вставки появляется при первом получении фокуса элементом управления «поле ввода». Gives directions for specifying where the insertion point appears when an edit control first gets the focus.
Практическое руководство. Создание текстового поля только для чтения How to: Create a Read-Only Text Box
Описывает, как предотвратить изменение содержимого текстового поля. Describes how to prevent the contents of a text box from being changed.
Практическое руководство. Добавление кавычек в строку How to: Put Quotation Marks in a String
Описание добавления кавычек к строке в текстовом поле. Explains adding quotation marks to a string in a text box.
Справочник Reference
Класс TextBox TextBox class
Описание класса и всех его членов. Describes this class and has links to all its members.
Связанные разделы Related Sections
Элементы управления для использования в формах Windows Forms Controls to Use on Windows Forms
Полный список элементов управления Windows Forms со ссылками на информацию об их применении. Provides a complete list of Windows Forms controls, with links to information on their use.
Tool Strip Text Box Класс
Определение
Представляет в объекте ToolStrip текстовое поле, позволяющее вводить текст. Represents a text box in a ToolStrip that allows the user to enter text.
Примеры
В следующем примере кода демонстрируется использование ToolStripTextBox различных общих параметров свойств, включая параметры автоматического завершения. The following code example demonstrates a ToolStripTextBox with various common property settings, including automatic completion options.
Комментарии
ToolStripTextBoxTextBoxоптимизирован для размещения в ToolStrip . ToolStripTextBox is the TextBox optimized for hosting in a ToolStrip. Подмножество свойств и событий размещаемого элемента управления предоставляется на ToolStripTextBox уровне, но базовый TextBox элемент управления полностью доступен через TextBox свойство. A subset of the hosted control’s properties and events are exposed at the ToolStripTextBox level, but the underlying TextBox control is fully accessible through the TextBox property.
ToolStripTextBoxЭлемент управления позволяет пользователю вводить текст в приложении. The ToolStripTextBox control allows the user to enter text in an application. Этот элемент управления обладает дополнительными функциональными возможностями, которые не найдены в стандартном элементе управления «текстовое поле Windows», включая многострочное редактирование. This control has additional functionality that is not found in the standard Windows text box control, including multiline editing.
Как правило, ToolStripTextBox элемент управления используется для вывода одной строки текста или принятия его в качестве входных данных. Typically, a ToolStripTextBox control is used to display a single line of text or accept it as input. Можно использовать, Multiline чтобы включить отображение или ввод нескольких строк текста. You can use the Multiline to enable multiple lines of text to be displayed or entered. Задайте для AcceptsTab свойств и значение, AcceptsReturn true чтобы разрешить обработку большего текста в многострочном ToolStripTextBox элементе управления. Set the AcceptsTab and AcceptsReturn properties to true to allow greater text manipulation in a multiline ToolStripTextBox control.
Можно ограничить объем текста, введенного в ToolStripTextBox элемент управления, присвоив MaxLength свойству определенное количество символов. You can limit the amount of text entered into a ToolStripTextBox control by setting the MaxLength property to a specific number of characters. Используйте CharacterCasing свойство, чтобы разрешить пользователю вводить только прописные буквы, строчные буквы или сочетания прописных и строчных букв в ToolStripTextBox элемент управления. Use the CharacterCasing property to allow the user to type only uppercase, only lowercase, or a combination of uppercase and lowercase characters into the ToolStripTextBox control.
Чтобы ограничить ввод текста в ToolStripTextBox элементе управления, можно создать обработчик событий для KeyDown события, чтобы проверить каждый символ, введенный в элемент управления. To restrict text from being entered in a ToolStripTextBox control, you can create an event handler for the KeyDown event in order to validate each character entered in the control. Можно также ограничить всю запись данных в ToolStripTextBox элементе управления, задав ReadOnly свойству значение true . You can also restrict all entry of data in a ToolStripTextBox control by setting the ReadOnly property to true .
Конструкторы
Инициализирует новый экземпляр класса ToolStripTextBox. Initializes a new instance of the ToolStripTextBox class.
Инициализирует новый экземпляр класса ToolStripTextBox, получаемый из базового элемента управления. Initializes a new instance of the ToolStripTextBox class derived from a base control.
Инициализирует новый экземпляр класса ToolStripTextBox с указанным именем. Initializes a new instance of the ToolStripTextBox class with the specified name.
Свойства
Получает или задает значение, указывающее, что происходит в многострочном элементе управления TextBox при нажатии клавиши ENTER: создается новая строка текста или активируется кнопка стандартного действия формы. Gets or sets a value indicating whether pressing ENTER in a multiline TextBox control creates a new line of text in the control or activates the default button for the form.
Возвращает или задает значение, указывающее, что происходит при нажатии клавиши TAB в многострочном элементе управления: вводится знак табуляции в текстовом поле или фокус ввода в форме перемещается к следующему элементу управления в последовательности переходов. Gets or sets a value indicating whether pressing the TAB key in a multiline text box control types a TAB character in the control instead of moving the focus to the next control in the tab order.
Получает объект AccessibleObject, назначенный элементу управления. Gets the AccessibleObject assigned to the control.
(Унаследовано от ToolStripItem)
Возвращает или задает описание выполняемого по умолчанию действия элемента управления для использования клиентскими приложениями со специальными возможностями. Gets or sets the default action description of the control for use by accessibility client applications.
(Унаследовано от ToolStripItem)
Возвращает или задает описание, которое будет сообщено клиентским приложениям со специальными возможностями. Gets or sets the description that will be reported to accessibility client applications.
(Унаследовано от ToolStripItem)
Возвращает или задает имя элемента управления, используемого клиентскими приложениями со специальными возможностями. Gets or sets the name of the control for use by accessibility client applications.
(Унаследовано от ToolStripItem)
Возвращает или задает роль элемента управления в поддержке специальных возможностей, которая указывает тип элемента пользовательского интерфейса для данного элемента управления. Gets or sets the accessible role of the control, which specifies the type of user interface element of the control.
(Унаследовано от ToolStripItem)
Получает или задает значение, указывающее, выравнивается ли элемент по началу или по концу элемента ToolStrip. Gets or sets a value indicating whether the item aligns towards the beginning or end of the ToolStrip.
(Унаследовано от ToolStripItem)
Возвращает или задает значение, указывающее, будут ли операции перетаскивания и переупорядочения элементов обрабатываться с помощью событий, реализованных пользователем. Gets or sets a value indicating whether drag-and-drop and item reordering are handled through events that you implement.
(Унаследовано от ToolStripItem)
Возвращает или задает границы контейнера, с которым связан объект ToolStripItem, и определяет, как изменяются размеры объекта ToolStripItem вместе с родительским объектом. Gets or sets the edges of the container to which a ToolStripItem is bound and determines how a ToolStripItem is resized with its parent.
(Унаследовано от ToolStripItem)
Получает или задает настраиваемую коллекцию строк для использования в случае, когда для свойства AutoCompleteSource установлено значение CustomSource . Gets or sets a custom string collection to use when the AutoCompleteSource property is set to CustomSource .
Возвращает или задает параметр, который управляет работой автоматического завершения для ToolStripTextBox. Gets or sets an option that controls how automatic completion works for the ToolStripTextBox.
Возвращает или задает значение, указывающее источник строк завершения, используемых для автоматического завершения. Gets or sets a value specifying the source of complete strings used for automatic completion.
Возвращает или задает значение, указывающее, производится ли автоматическое изменение размеров элемента. Gets or sets a value indicating whether the item is automatically sized.
(Унаследовано от ToolStripItem)
Получает или задает значение, указывающее, следует ли использовать свойство Text или свойство ToolTipText для подсказки ToolStripItem. Gets or sets a value indicating whether to use the Text property or the ToolTipText property for the ToolStripItem ToolTip.
(Унаследовано от ToolStripItem)
Получает или задает значение, указывающее, нужно ли помещать ToolStripItem в ToolStrip. Gets or sets a value indicating whether the ToolStripItem should be placed on a ToolStrip.
(Унаследовано от ToolStripItem)
Возвращает или задает цвет фона для элемента управления. Gets or sets the background color for the control.
(Унаследовано от ToolStripControlHost)
Данное свойство не применимо к этому классу. This property is not relevant to this class.
Данное свойство не применимо к этому классу. This property is not relevant to this class.
Получает или задает тип границы элемента управления ToolStripTextBox. Gets or sets the border type of the ToolStripTextBox control.
Возвращает размер и расположение элемента. Gets the size and location of the item.
(Унаследовано от ToolStripItem)
Возвращает значение, показывающее, может ли компонент вызывать событие. Gets a value indicating whether the component can raise an event.
(Унаследовано от Component)
Возвращает значение, указывающее, доступен ли элемент управления для выбора. Gets a value indicating whether the control can be selected.
(Унаследовано от ToolStripControlHost)
Получает значение, указывающее, есть ли у пользователя возможность отмены предыдущей операции в элементе управления ToolStripTextBox. Gets a value indicating whether the user can undo the previous operation in a ToolStripTextBox control.
Возвращает или задает значение, указывающее, вызывает ли размещенный элемент управления события проверки для других элементов управления при получении фокуса этим размещенным элементом управления. Gets or sets a value indicating whether the hosted control causes and raises validation events on other controls when the hosted control receives focus.
(Унаследовано от ToolStripControlHost)
Получает или задает значение, указывающее, изменяет ли элемент управления ToolStripTextBox регистр знаков при вводе. Gets or sets whether the ToolStripTextBox control modifies the case of characters as they are typed.
Возвращает объект IContainer, который содержит коллекцию Component. Gets the IContainer that contains the Component.
(Унаследовано от Component)
Получает область, в которой содержимое, например текст и значки, могут быть помещены в ToolStripItem без перезаписи границ фона. Gets the area where content, such as text and icons, can be placed within a ToolStripItem without overwriting background borders.
(Унаследовано от ToolStripItem)
Получает класс Control, размещенный в данном классе ToolStripControlHost. Gets the Control that this ToolStripControlHost is hosting.
(Унаследовано от ToolStripControlHost)
Возвращает или задает выравнивание элемента управления в форме. Gets or sets the alignment of the control on the form.
(Унаследовано от ToolStripControlHost)
Получает значение, указывающее, должен ли отображаться объект ToolTip, который определен по умолчанию. Gets a value indicating whether to display the ToolTip that is defined as the default.
(Унаследовано от ToolStripItem)
Получает значение, указывающее, что отображается в ToolStripItem. Gets a value indicating what is displayed on the ToolStripItem.
(Унаследовано от ToolStripItem)
Получает расстояние (в пикселях) между объектом ToolStripTextBox и прилегающими элементами. Gets the spacing, in pixels, between the ToolStripTextBox and adjacent items.
Возвращает параметры внутренних интервалов элемента. Gets the internal spacing characteristics of the item.
(Унаследовано от ToolStripItem)
Возвращает размер по умолчанию для объекта ToolStripTextBox. Gets the default size of the ToolStripTextBox.
Возвращает значение, указывающее, находится ли данный компонент Component в режиме конструктора в настоящее время. Gets a value that indicates whether the Component is currently in design mode.
(Унаследовано от Component)
Получает значение, указывающее, скрываются ли элементы на объекте ToolStripDropDown после того как их щелкнули. Gets a value indicating whether items on a ToolStripDropDown are hidden after they are clicked.
(Унаследовано от ToolStripItem)
Данное свойство не применимо к этому классу. This property is not relevant to this class.
(Унаследовано от ToolStripControlHost)
Возвращает или задает границы объекта ToolStripItem, которые прикрепляются к его родительскому элементу управления, и определяет способ изменения размеров объекта ToolStripItem при изменении размеров его родительского элемента управления. Gets or sets which ToolStripItem borders are docked to its parent control and determines how a ToolStripItem is resized with its parent.
(Унаследовано от ToolStripItem)
Данное свойство не применимо к этому классу. This property is not relevant to this class.
(Унаследовано от ToolStripControlHost)
Получает или задает значение показывающее, активизирован ли родительский элемент управления для объекта ToolStripItem. Gets or sets a value indicating whether the parent control of the ToolStripItem is enabled.
(Унаследовано от ToolStripControlHost)
Возвращает список обработчиков событий, которые прикреплены к этому объекту Component. Gets the list of event handlers that are attached to this Component.
(Унаследовано от Component)
Возвращает значение, указывающее, имеется ли на элементе управления фокус ввода. Gets a value indicating whether the control has input focus.
(Унаследовано от ToolStripControlHost)
Возвращает или задает шрифт, используемый размещенным элементом управления. Gets or sets the font to be used on the hosted control.
(Унаследовано от ToolStripControlHost)
Возвращает или задает цвет размещаемого элемента управления. Gets or sets the foreground color of the hosted control.
(Унаследовано от ToolStripControlHost)
Получает или задает высоту объекта ToolStripItem в пикселях. Gets or sets the height, in pixels, of a ToolStripItem.
(Унаследовано от ToolStripItem)
Возвращает или задает значение, указывающее, остается ли выделенный текст в текстовом поле выделенным, когда фокус ввода в форме переходит с данного элемента управления на другой. Gets or sets a value indicating whether the selected text in the text box control remains highlighted when the control loses focus.
Изображение, связанное с объектом. The image associated with the object.
(Унаследовано от ToolStripControlHost)
Данное свойство не применимо к этому классу. This property is not relevant to this class.
(Унаследовано от ToolStripControlHost)
Возвращает или задает значение индекса изображения, отображаемого на данном элементе. Gets or sets the index value of the image that is displayed on the item.
(Унаследовано от ToolStripItem)
Получает или задает средство доступа к ключу для изображения в ImageList, отображаемого в элементе ToolStripItem. Gets or sets the key accessor for the image in the ImageList that is displayed on a ToolStripItem.
(Унаследовано от ToolStripItem)
Данное свойство не применимо к этому классу. This property is not relevant to this class.
(Унаследовано от ToolStripControlHost)
Данное свойство не применимо к этому классу. This property is not relevant to this class.
(Унаследовано от ToolStripControlHost)
Возвращает значение, указывающее, был ли удален объект. Gets a value indicating whether the object has been disposed of.
(Унаследовано от ToolStripItem)
Получает значение, определяющее, является ли контейнер текущего Control элементом ToolStripDropDown. Gets a value indicating whether the container of the current Control is a ToolStripDropDown.
(Унаследовано от ToolStripItem)
Получает значение, указывающее, установлено ли для свойства Placement значение Overflow. Gets a value indicating whether the Placement property is set to Overflow.
(Унаследовано от ToolStripItem)
Получает или задает строки текста в элементе управления ToolStripTextBox. Gets or sets the lines of text in a ToolStripTextBox control.
Возвращает или задает расстояние между элементом и соседними элементами. Gets or sets the space between the item and adjacent items.
(Унаследовано от ToolStripItem)
Возвращает или задает максимальное число символов, которое разрешается вводить или вставлять в элемент управления «текстовое поле». Gets or sets the maximum number of characters the user can type or paste into the text box control.
Получает или задает способ слияния дочерних меню с родительскими меню. Gets or sets how child menus are merged with parent menus.
(Унаследовано от ToolStripItem)
Получает или задает положение элемента при слиянии в текущем ToolStrip. Gets or sets the position of a merged item within the current ToolStrip.
(Унаследовано от ToolStripItem)
Получает или задает значение, которое показывает, что элемент управления ToolStripTextBox изменен пользователем со времени создания элемента управления или последнего ввода его содержимого. Gets or sets a value that indicates that the ToolStripTextBox control has been modified by the user since the control was created or its contents were last set.
Данное свойство не применимо к этому классу. This property is not relevant to this class.
Возвращает или задает имя элемента. Gets or sets the name of the item.
(Унаследовано от ToolStripItem)
Получает или задает значение, указывающее, присоединен ли элемент к элементу ToolStrip или ToolStripOverflowButton или он может перемещаться между ними. Gets or sets whether the item is attached to the ToolStrip or ToolStripOverflowButton or can float between the two.
(Унаследовано от ToolStripItem)
Возвращает или задает владельца данного элемента. Gets or sets the owner of this item.
(Унаследовано от ToolStripItem)
Возвращает родительский объект ToolStripItem этого объекта ToolStripItem. Gets the parent ToolStripItem of this ToolStripItem.
(Унаследовано от ToolStripItem)
Возвращает или задает внутренний интервал в пикселях между краями элемента и его содержимым. Gets or sets the internal spacing, in pixels, between the item’s contents and its edges.
(Унаследовано от ToolStripItem)
Получает или задает родительский контейнер ToolStripItem. Gets or sets the parent container of the ToolStripItem.
(Унаследовано от ToolStripItem)
Возвращает текущую структуру элемента. Gets the current layout of the item.
(Унаследовано от ToolStripItem)
Получает значение, показывающее, нажат ли элемент. Gets a value indicating whether the state of the item is pressed.
(Унаследовано от ToolStripItem)
Получает или задает значение, указывающее, является ли текст в элементе управления ToolStripTextBox доступным только для чтения. Gets or sets a value indicating whether text in the ToolStripTextBox is read-only.
Возвращает или задает значение, указывающее, выровнены ли компоненты элемента управления для поддержки языков, использующих шрифты с написанием справа налево. Gets or sets a value indicating whether control’s elements are aligned to support locales using right-to-left fonts.
(Унаследовано от ToolStripControlHost)
Данное свойство не применимо к этому классу. This property is not relevant to this class.
(Унаследовано от ToolStripControlHost)
Возвращает значение, указывающее, выбран ли элемент. Gets a value indicating whether the item is selected.
(Унаследовано от ToolStripControlHost)
Возвращает или задает значение, указывающее текст, выбранный в настоящий момент в элементе управления. Gets or sets a value indicating the currently selected text in the control.
Получает или задает количество символов, выделенных в элементе управления ToolStripTextBox. Gets or sets the number of characters selected in the ToolStripTextBox.
Получает или задает начальную точку текста, выделяемого в элементе управления ToolStripTextBox. Gets or sets the starting point of text selected in the ToolStripTextBox.
Возвращает или задает значение, указывающее, включены ли определенные сочетания клавиш. Gets or sets a value indicating whether the defined shortcuts are enabled.
Возвращает значение, определяющее, должны сочетания клавиш отображаться или нет. Gets a value indicating whether to show or hide shortcut keys.
(Унаследовано от ToolStripItem)
Возвращает или задает узел размещенного элемента управления. Gets or sets the site of the hosted control.
(Унаследовано от ToolStripControlHost)
Получает или задает размер объекта класса ToolStripItem. Gets or sets the size of the ToolStripItem.
(Унаследовано от ToolStripControlHost)
Возвращает или задает объект, который содержит данные об элементе. Gets or sets the object that contains data about the item.
(Унаследовано от ToolStripItem)
Возвращает или задает текст, отображаемый на размещаемом элементе управления. Gets or sets the text to be displayed on the hosted control.
(Унаследовано от ToolStripControlHost)
Данное свойство не применимо к этому классу. This property is not relevant to this class.
(Унаследовано от ToolStripControlHost)
Получает размещаемый элемент управления TextBox. Gets the hosted TextBox control.
Получает или задает способ выравнивания текста в элементе управления TextBox. Gets or sets how text is aligned in a TextBox control.
Данное свойство не применимо к этому классу. This property is not relevant to this class.
(Унаследовано от ToolStripControlHost)
Данное свойство не применимо к этому классу. This property is not relevant to this class.
(Унаследовано от ToolStripControlHost)
Возвращает длину текста в элементе управления. Gets the length of text in the control.
Получает или задает текст, который появляется как ToolTip для элемента управления. Gets or sets the text that appears as a ToolTip for a control.
(Унаследовано от ToolStripItem)
Возвращает или задает значение, указывающее, отображается ли элемент. Gets or sets a value indicating whether the item is displayed.
(Унаследовано от ToolStripItem)
Получает или задает ширину объекта ToolStripItem в пикселях. Gets or sets the width in pixels of a ToolStripItem.
(Унаследовано от ToolStripItem)
Данное свойство не применимо к этому классу. This property is not relevant to this class.
Методы
Добавляет текст в конец текущего текста в элементе управления ToolStripTextBox. Appends text to the current text of the ToolStripTextBox.
Удаляет весь текст из элемента управления ToolStripTextBox. Clears all text from the ToolStripTextBox control.
Удаляет сведения о самой последней операции из буфера отмены элемента управления ToolStripTextBox. Clears information about the most recent operation from the undo buffer of the ToolStripTextBox.
Копирует текущий выделенный в ToolStripTextBox фрагмент в буфер обмена. Copies the current selection in the ToolStripTextBox to the Clipboard.
Создает для элемента управления новый объект с поддержкой специальных возможностей. Creates a new accessibility object for the control.
Создает для элемента управления новый объект с поддержкой специальных возможностей. Creates a new accessibility object for the control.
(Унаследовано от ToolStripControlHost)
Создает объект, который содержит всю необходимую информацию для создания прокси-сервера, используемого для взаимодействия с удаленным объектом. Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Унаследовано от MarshalByRefObject)
Перемещает текущее выделение, существующее в элементе управления ToolStripTextBox, в буфер обмена. Moves the current selection in the ToolStripTextBox to the Clipboard.
Указывает, что значение свойства SelectionLength равно нулю для отмены выделения символов в элементе управления. Specifies that the value of the SelectionLength property is zero so that no characters are selected in the control.
Освобождает все ресурсы, занятые модулем Component. Releases all resources used by the Component.
(Унаследовано от Component)
Освобождает неуправляемые ресурсы, используемые объектом ToolStripControlHost, а при необходимости освобождает также управляемые ресурсы. Releases the unmanaged resources used by the ToolStripControlHost and optionally releases the managed resources.
(Унаследовано от ToolStripControlHost)
Начинает операцию перетаскивания. Begins a drag-and-drop operation.
(Унаследовано от ToolStripItem)
Определяет, равен ли указанный объект текущему объекту. Determines whether the specified object is equal to the current object.
(Унаследовано от Object)
Передает фокус элементу управления. Gives the focus to a control.
(Унаследовано от ToolStripControlHost)
Возвращает символ, ближайший к указанному местоположению в элементе управления. Retrieves the character that is closest to the specified location within the control.
Возвращает индекс ближайшего к указанному местоположению символа. Retrieves the index of the character nearest to the specified location.
Извлекает ToolStrip, который является контейнером текущего ToolStripItem. Retrieves the ToolStrip that is the container of the current ToolStripItem.
(Унаследовано от ToolStripItem)
Возвращает индекс первого символа заданной строки. Retrieves the index of the first character of a given line.
Возвращает индекс первого символа текущей строки. Retrieves the index of the first character of the current line.
Служит хэш-функцией по умолчанию. Serves as the default hash function.
(Унаследовано от Object)
Извлекает объект обслуживания во время существования, который управляет политикой времени существования данного экземпляра. Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Унаследовано от MarshalByRefObject)
Вычисляет номер строки по указанному положению символа в тексте элемента управления. Retrieves the line number from the specified character position within the text of the control.
Вычисляет положение в элементе управления по указанному индексу символа. Retrieves the location within the control at the specified character index.
Вычисляет размер прямоугольной области, в которую помещается элемент управления. Retrieves the size of a rectangular area into which a control can be fitted.
Возвращает объект, представляющий службу, предоставляемую классом Component или классом Container. Returns an object that represents a service provided by the Component or by its Container.
(Унаследовано от Component)
Возвращает объект Type для текущего экземпляра. Gets the Type of the current instance.
(Унаследовано от Object)
Получает объект службы времени существования для управления политикой времени существования для этого экземпляра. Obtains a lifetime service object to control the lifetime policy for this instance.
(Унаследовано от MarshalByRefObject)
Делает недействительной всю поверхность элемента ToolStripItemи вызывает его перерисовку. Invalidates the entire surface of the ToolStripItem and causes it to be redrawn.
(Унаследовано от ToolStripItem)
Делает недействительной указанную область элемента ToolStripItem путем добавления ее к области обновления элемента ToolStripItem, которая будет перерисована при следующей операции рисования, и вызывает отправку сообщения изображения элементу ToolStripItem. Invalidates the specified region of the ToolStripItem by adding it to the update region of the ToolStripItem, which is the area that will be repainted at the next paint operation, and causes a paint message to be sent to the ToolStripItem.
(Унаследовано от ToolStripItem)
Определяет, является ли символ входным символом, который распознается элементом. Determines whether a character is an input character that the item recognizes.
(Унаследовано от ToolStripItem)
Определяет, является ли заданная клавиша обычной клавишей ввода или специальной клавишей, нуждающейся в предварительной обработке. Determines whether the specified key is a regular input key or a special key that requires preprocessing.
(Унаследовано от ToolStripItem)
Создает неполную копию текущего объекта Object. Creates a shallow copy of the current Object.
(Унаследовано от Object)
Создает неполную копию текущего объекта MarshalByRefObject. Creates a shallow copy of the current MarshalByRefObject object.
(Унаследовано от MarshalByRefObject)
Вызывает событие AvailableChanged. Raises the AvailableChanged event.
(Унаследовано от ToolStripItem)
Вызывает событие BackColorChanged. Raises the BackColorChanged event.
(Унаследовано от ToolStripItem)
Происходит при изменении свойства Bounds. Occurs when the Bounds property changes.
(Унаследовано от ToolStripControlHost)
Вызывает событие Click. Raises the Click event.
(Унаследовано от ToolStripItem)
(Унаследовано от ToolStripItem)
Вызывает событие DoubleClick. Raises the DoubleClick event.
(Унаследовано от ToolStripItem)
Вызывает событие DragDrop. Raises the DragDrop event.
(Унаследовано от ToolStripItem)
Вызывает событие DragEnter. Raises the DragEnter event.
(Унаследовано от ToolStripItem)
Вызывает событие DragLeave. Raises the DragLeave event.
(Унаследовано от ToolStripItem)
Вызывает событие DragOver. Raises the DragOver event.
(Унаследовано от ToolStripItem)
Вызывает событие EnabledChanged. Raises the EnabledChanged event.
(Унаследовано от ToolStripItem)
Вызывает событие Enter. Raises the Enter event.
(Унаследовано от ToolStripControlHost)
Вызывает событие FontChanged. Raises the FontChanged event.
(Унаследовано от ToolStripItem)
Вызывает событие ForeColorChanged. Raises the ForeColorChanged event.
(Унаследовано от ToolStripItem)
Вызывает событие GiveFeedback. Raises the GiveFeedback event.
(Унаследовано от ToolStripItem)
Вызывает событие GotFocus. Raises the GotFocus event.
(Унаследовано от ToolStripControlHost)
Синхронизирует изменение размеров объекта, в котором размещается элемент управления, с изменением размеров размещенного элемента управления. Synchronizes the resizing of the control host with the resizing of the hosted control.
(Унаследовано от ToolStripControlHost)
Вызывает событие KeyDown. Raises the KeyDown event.
(Унаследовано от ToolStripControlHost)
Вызывает событие KeyPress. Raises the KeyPress event.
(Унаследовано от ToolStripControlHost)
Вызывает событие KeyUp. Raises the KeyUp event.
(Унаследовано от ToolStripControlHost)
Вызывает событие Layout. Raises the Layout event.
(Унаследовано от ToolStripControlHost)
Вызывает событие Leave. Raises the Leave event.
(Унаследовано от ToolStripControlHost)
Вызывает событие LocationChanged. Raises the LocationChanged event.
(Унаследовано от ToolStripItem)
Вызывает событие LostFocus. Raises the LostFocus event.
(Унаследовано от ToolStripControlHost)
Вызывает событие ModifiedChanged. Raises the ModifiedChanged event.
Вызывает событие MouseDown. Raises the MouseDown event.
(Унаследовано от ToolStripItem)
Вызывает событие MouseEnter. Raises the MouseEnter event.
(Унаследовано от ToolStripItem)
Вызывает событие MouseHover. Raises the MouseHover event.
(Унаследовано от ToolStripItem)
Вызывает событие MouseLeave. Raises the MouseLeave event.
(Унаследовано от ToolStripItem)
Вызывает событие MouseMove. Raises the MouseMove event.
(Унаследовано от ToolStripItem)
Вызывает событие MouseUp. Raises the MouseUp event.
(Унаследовано от ToolStripItem)
Вызывает событие MultilineChanged. Raises the MultilineChanged event.
Вызывает событие OwnerChanged. Raises the OwnerChanged event.
(Унаследовано от ToolStripItem)
Вызывает событие FontChanged, когда изменяется свойство Font в родительском элементе элемента ToolStripItem. Raises the FontChanged event when the Font property has changed on the parent of the ToolStripItem.
(Унаследовано от ToolStripItem)
Вызывает событие Paint. Raises the Paint event.
(Унаследовано от ToolStripControlHost)
Вызывает событие BackColorChanged. Raises the BackColorChanged event.
(Унаследовано от ToolStripItem)
Вызывает событие ParentChanged. Raises the ParentChanged event.
(Унаследовано от ToolStripControlHost)
Вызывает событие EnabledChanged при изменении значения свойства Enabled контейнера элемента. Raises the EnabledChanged event when the Enabled property value of the item’s container changes.
(Унаследовано от ToolStripItem)
Вызывает событие ForeColorChanged. Raises the ForeColorChanged event.
(Унаследовано от ToolStripItem)
(Унаследовано от ToolStripItem)
(Унаследовано от ToolStripItem)
Вызывает событие ReadOnlyChanged. Raises the ReadOnlyChanged event.
(Унаследовано от ToolStripItem)
Подписывает на события, связанные с размещенным элементом управления. Subscribes events from the hosted control.
Вызывает событие TextChanged. Raises the TextChanged event.
(Унаследовано от ToolStripItem)
Отменяет подписку на события, связанные с размещенным элементом управления. Unsubscribes events from the hosted control.
Вызывает событие Validated. Raises the Validated event.
(Унаследовано от ToolStripControlHost)
Вызывает событие Validating. Raises the Validating event.
(Унаследовано от ToolStripControlHost)
Вызывает событие VisibleChanged. Raises the VisibleChanged event.
(Унаследовано от ToolStripItem)
Заменяет текущее выделение в текстовом поле содержимым буфера обмена. Replaces the current selection in the text box with the contents of the Clipboard.
Создает событие Click для элемента ToolStripItem . Generates a Click event for a ToolStripItem .
(Унаследовано от ToolStripItem)
Обрабатывает клавишу для команд. Processes a command key.
(Унаследовано от ToolStripControlHost)
Обрабатывает клавишу диалогового окна. Processes a dialog key.
(Унаследовано от ToolStripControlHost)
Обрабатывает назначенный символ. Processes a mnemonic character.
(Унаследовано от ToolStripControlHost)
Данный метод не применим к этому классу. This method is not relevant to this class.
(Унаследовано от ToolStripControlHost)
Данный метод не применим к этому классу. This method is not relevant to this class.
(Унаследовано от ToolStripItem)
Данный метод не применим к этому классу. This method is not relevant to this class.
(Унаследовано от ToolStripItem)
Данный метод не применим к этому классу. This method is not relevant to this class.
(Унаследовано от ToolStripControlHost)
Данный метод не применим к этому классу. This method is not relevant to this class.
(Унаследовано от ToolStripItem)
Данный метод не применим к этому классу. This method is not relevant to this class.
(Унаследовано от ToolStripItem)
Данный метод не применим к этому классу. This method is not relevant to this class.
(Унаследовано от ToolStripItem)
Данный метод не применим к этому классу. This method is not relevant to this class.
(Унаследовано от ToolStripItem)
Данный метод не применим к этому классу. This method is not relevant to this class.
(Унаследовано от ToolStripItem)
Прокручивает содержимое элемента управления до текущей позиции курсора. Scrolls the contents of the control to the current caret position.
Выбирает элемент. Selects the item.
(Унаследовано от ToolStripItem)
Выбирает диапазон текста в текстовом поле. Selects a range of text in the text box.
Выбирает весь текст в текстовом поле. Selects all text in the text box.
Задает размер и расположение элемента. Sets the size and location of the item.
(Унаследовано от ToolStripItem)
Устанавливает ToolStripItem в указанное видимое состояние. Sets the ToolStripItem to the specified visible state.
(Унаследовано от ToolStripControlHost)
Возвращает объект String, содержащий имя Component, если оно есть. Returns a String containing the name of the Component, if any. Этот метод не следует переопределять. This method should not be overridden.
(Унаследовано от ToolStripItem)
Отменяет последнюю операцию редактирования в текстовом поле. Undoes the last edit operation in the text box.
События
Происходит при изменении значения свойства AcceptsTab. Occurs when the value of the AcceptsTab property changes.
Происходит при изменении значения свойства Available. Occurs when the value of the Available property changes.
(Унаследовано от ToolStripItem)
Происходит при изменении значения свойства BackColor. Occurs when the value of the BackColor property changes.
(Унаследовано от ToolStripItem)
Происходит при изменении значения свойства BorderStyle. Occurs when the value of the BorderStyle property changes.
Происходит при щелчке объекта ToolStripItem. Occurs when the ToolStripItem is clicked.
(Унаследовано от ToolStripItem)
Данное событие не применимо к этому классу. This event is not relevant to this class.
(Унаследовано от ToolStripControlHost)
Возникает при удалении компонента путем вызова метода Dispose(). Occurs when the component is disposed by a call to the Dispose() method.
(Унаследовано от Component)
Происходит при двойном щелчке элемента кнопкой мыши. Occurs when the item is double-clicked with the mouse.
(Унаследовано от ToolStripItem)
Происходит, когда пользователь перетаскивает элемент и отпускает кнопку мыши, указывая, что элемент должен быть перемещен в данный элемент. Occurs when the user drags an item and the user releases the mouse button, indicating that the item should be dropped into this item.
(Унаследовано от ToolStripItem)
Происходит, когда пользователь перетаскивает элемент в клиентскую область данного элемента. Occurs when the user drags an item into the client area of this item.
(Унаследовано от ToolStripItem)
Происходит, когда пользователь перетаскивает элемент и указатель мыши больше не находится в клиентской области данного элемента. Occurs when the user drags an item and the mouse pointer is no longer over the client area of this item.
(Унаследовано от ToolStripItem)
Происходит, когда пользователь перетаскивает элемент в клиентскую область данного элемента. Occurs when the user drags an item over the client area of this item.
(Унаследовано от ToolStripItem)
Происходит, если значение свойства Enabled было изменено. Occurs when the Enabled property value has changed.
(Унаследовано от ToolStripItem)
Происходит при входе в размещенный элемент управления. Occurs when the hosted control is entered.
(Унаследовано от ToolStripControlHost)
Происходит при изменении значения свойства ForeColor. Occurs when the ForeColor property value changes.
(Унаследовано от ToolStripItem)
Вызывается при выполнении операции перетаскивания. Occurs during a drag operation.
(Унаследовано от ToolStripItem)
Происходит при получении фокуса размещенным элементом управления. Occurs when the hosted control receives focus.
(Унаследовано от ToolStripControlHost)
Происходит при изменении значения свойства HideSelection. Occurs when the value of the HideSelection property changes.
Происходит при нажатии и удерживании клавиши, когда на размещенный элемент управления установлен фокус. Occurs when a key is pressed and held down while the hosted control has focus.
(Унаследовано от ToolStripControlHost)
Происходит при нажатии клавиши, когда на размещенном элементе управления установлен фокус. Occurs when a key is pressed while the hosted control has focus.
(Унаследовано от ToolStripControlHost)
Происходит при отпускании клавиши, когда на размещенном элементе управления установлен фокус. Occurs when a key is released while the hosted control has focus.
(Унаследовано от ToolStripControlHost)
Происходит при перемещении фокуса ввода с размещенного элемента управления. Occurs when the input focus leaves the hosted control.
(Унаследовано от ToolStripControlHost)
Происходит при обновлении местоположения элемента ToolStripItem. Occurs when the location of a ToolStripItem is updated.
(Унаследовано от ToolStripItem)
Происходит при утрате фокуса размещенным элементом управления. Occurs when the hosted control loses focus.
(Унаследовано от ToolStripControlHost)
Происходит при изменении значения свойства Modified. Occurs when the value of the Modified property changes.
Происходит при нажатии кнопки мыши, если указатель мыши находится на элементе. Occurs when the mouse pointer is over the item and a mouse button is pressed.
(Унаследовано от ToolStripItem)
Происходит, когда указатель мыши оказывается на элементе. Occurs when the mouse pointer enters the item.
(Унаследовано от ToolStripItem)
Происходит, когда указатель мыши наведен на элемент. Occurs when the mouse pointer hovers over the item.
(Унаследовано от ToolStripItem)
Происходит, когда указатель мыши покидает элемент. Occurs when the mouse pointer leaves the item.
(Унаследовано от ToolStripItem)
Происходит при перемещении указателя мыши по элементу. Occurs when the mouse pointer is moved over the item.
(Унаследовано от ToolStripItem)
Происходит при отпускании кнопки мыши, если указатель мыши находится на элементе. Occurs when the mouse pointer is over the item and a mouse button is released.
(Унаследовано от ToolStripItem)
Данное событие не применимо к этому классу. This event is not relevant to this class.
Происходит при изменении свойства Owner. Occurs when the Owner property changes.
(Унаследовано от ToolStripItem)
Происходит при перерисовке элемента. Occurs when the item is redrawn.
(Унаследовано от ToolStripItem)
Происходит, когда приложение со специальными возможностями вызывает справку для ToolStripItem. Occurs when an accessibility client application invokes help for the ToolStripItem.
(Унаследовано от ToolStripItem)
Происходит во время операции перетаскивания и позволяет источнику перетаскивания определить, следует ли отменить эту операцию. Occurs during a drag-and-drop operation and allows the drag source to determine whether the drag-and-drop operation should be canceled.
(Унаследовано от ToolStripItem)
Происходит при изменении значения свойства ReadOnly. Occurs when the value of the ReadOnly property changes.
Происходит при изменении значения свойства RightToLeft. Occurs when the RightToLeft property value changes.
(Унаследовано от ToolStripItem)
Происходит при изменении значения свойства TextBoxTextAlign. Occurs when the value of the TextBoxTextAlign property changes.
Происходит при изменении значения свойства Text. Occurs when the value of the Text property changes.
(Унаследовано от ToolStripItem)
Возникает после успешной проверки размещенного элемента управления. Occurs after the hosted control has been successfully validated.
(Унаследовано от ToolStripControlHost)
Происходит в процессе проверки размещенного элемента управления. Occurs while the hosted control is validating.
(Унаследовано от ToolStripControlHost)
Происходит при изменении значения свойства Visible. Occurs when the value of the Visible property changes.
(Унаследовано от ToolStripItem)
Явные реализации интерфейса
Вызывает событие DragDrop. Raises the DragDrop event.
(Унаследовано от ToolStripItem)
Вызывает событие DragEnter. Raises the DragEnter event.
(Унаследовано от ToolStripItem)
Вызывает событие DragLeave. Raises the DragLeave event.
(Унаследовано от ToolStripItem)
Вызывает событие DragOver . Raises the DragOver event.