Compartilhar via


Objeto TabStrip (Script do Outlook Forms)

Apresenta um conjunto de controles relacionados como um grupo visual.

Comentários

Use um TabStrip para exibir diferentes conjuntos de informações para controles relacionados.

Um TabStrip é um controle que contém um conjunto de uma ou mais guias.

Cada Guia de um TabStrip é um objeto separado que os usuários podem selecionar. Visualmente, um TabStrip também inclui uma área de cliente que todas as guias no TabStrip compartilham.

Por padrão, um TabStrip inclui duas páginas, denominadas Guia1 e Guia2. Cada uma delas é um objeto Tab e, juntas, representam o conjunto de Tabs do TabStrip. Se você adicionar mais páginas, elas farão parte do conjunto de Tabs.

Por exemplo, os controles podem representar informações sobre uma agenda diária de um grupo de indivíduos, com cada conjunto de informações correspondendo a um indivíduo diferente do grupo. Defina o título de cada guia para mostrar o nome de um indivíduo. Em seguida, você poderá escrever um código que, após você clicar em uma guia, atualize os controles para mostrar informações sobre a pessoa identificada na guia.

TabStrip é implementado como um contêiner de um conjunto Tabs que, por sua vez, contém um grupo de objetos Tab. O controle TabStrip não dá suporte ao evento Click.

A propriedade padrão de um TabStrip é a propriedade SelectedItem.

Eventos

Nome Descrição
Click Occurs when the user clicks inside the control.

Propriedades

Nome Descrição
BackColor Returns or sets a Long that specifies the background color of the object. Leitura/gravação.
ClientHeight Returns a Single value that represents the height dimension of the display area of a TabStrip. Somente leitura.
ClientLeft Returns a Single value that represents the location of the left edge of the display area of a TabStrip. Somente leitura.
ClientTop Returns a Single value that represents the location of the top edge of the display area of a TabStrip. Somente leitura.
ClientWidth Returns a Single value that represents the width dimension of the display area of a TabStrip. Somente leitura.
Enabled Returns or sets a Boolean that specifies whether a control can receive the focus and respond to user-generated events. Leitura/gravação.
ForeColor Returns or sets a Long that specifies the foreground color of an object. Leitura/gravação.
MouseIcon Returns a String that represents the full path name of a custom icon that is to be assigned to the control. Somente leitura.
MousePointer Returns or sets an Integer that specifies the type of pointer displayed when the user positions the mouse over a particular object. Leitura/gravação.
MultiRow Retorna ou define um booliano que especifica se o controle tem mais de uma linha de guias. Leitura/gravação.
SelectedItem Returns an Object that indicates the currently selected Tab object. Somente leitura.
Estilo Returns or sets an Integer that identifies the style of the tabs on the control. Leitura/gravação.
TabFixedHeight Returns or sets a Single that represents the height in points of the tabs on a TabStrip. Leitura/gravação.
TabFixedWidth Returns or sets a Single that represents the width in points of the tabs on a TabStrip. Leitura/gravação.
TabOrientation Returns or sets an Integer that specifies the location of the tabs on a TabStrip. Leitura/gravação.
Valor Returns or sets a Variant that indicates the currently active tab. Read/write.

Suporte e comentários

Tem dúvidas ou quer enviar comentários sobre o VBA para Office ou sobre esta documentação? Confira Suporte e comentários sobre o VBA para Office a fim de obter orientação sobre as maneiras pelas quais você pode receber suporte e fornecer comentários.