Usage of the TabControl control in Visual Studio, studiotabcontrol

Source: Internet
Author: User

Usage of the TabControl control in Visual Studio, studiotabcontrol

Today I met a TabControl control that I have never met, so I found some information about it.

 

TabControl
Attribute
DisplayRect: Only one rectangle in the customer zone of the control is set.
HotTrack: sets whether the word of the mouse changes when it passes through the tab. If it is True, the word turns blue.
Images: add an image for each tab
MultiLine: if the length of the total page label is greater than the width of the control, whether multiple lines are allowed to be displayed
MultiSelect: whether to allow multiple tab selection. This attribute is valid only when Style is tsFlatButtons or tsButtons.
OwnerDraw: whether to allow painting by yourself
RaggedRight: whether to allow the tab to expand to the control width
Scrolopposite: This attribute sets MultiLine to True. When the number of lines on the tab is greater than 1, when you click another page, the page under the tab will automatically flip the bottom of the control.
Style: Set the Style of the control.
TabHeight: Set the height of the tab.
TabIndex: The index number of the current tab. This number starts from 0.
TabPosition: select the position of the tab, which is top, bottom, left, and right.
Tabs: adds, deletes, and modifies each page.
TabWidth: Set the width of the tab.
Method
GetHitTestInfoAt: determines the position of the control in the specified value.
IndexOfTabAt: returns the tag of the specified position and its index number.
RowCount: number of rows of the returned Tab
ScrollTabs: When MultiLine is set to False, this method moves the parameter tabs backward.
TabRect: Set the rectangle of the returned Tab
Event
OnChange: triggered when the tab changes
OnChanging: triggered when the tab is being changed
OnDrawTab: triggered when a tab is painted.
OnGetImageIndex: When the tab page is displayed

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.