HeaderPane
Main
Hide
Share Link
Print

AccentColor Property, SftTabs Class

Defines the color that marks the selected tab in the Underline, Document and Pills looks.

Class: SftTabs
Namespace: Softelvdm.SftTabsNET
Assembly: Softelvdm.SftTabsNET

Syntax

public Color AccentColor { get; set; }
Public Property AccentColor As Color

Value

The color, or Color.Empty for the system's highlight color.

Comments

Defines the color that marks the selected tab in the Underline, Document and Pills looks.

Examples

C# View entire sample code

        }

        private void checkToolTips_CheckedChanged(object sender, EventArgs e) {
            if (loading) return;
            sftTabs1.ShowToolTips = checkToolTips.Checked;
        }

        private void buttonAccent_Click(object sender, EventArgs e) {
            colorDialog1.Color = sftTabs1.AccentColor;
            if (colorDialog1.ShowDialog(this) == DialogResult.OK)
                sftTabs1.AccentColor = colorDialog1.Color;
        }

        private void buttonAdd_Click(object sender, EventArgs e) {
            ++addedTabs;
            TabClass tab = sftTabs1.Tabs.Add("Added " + addedTabs.ToString());

VB.NET View entire sample code

End Sub

Private Sub CheckToolTips_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckToolTips.CheckedChanged
    If loading Then Return
    SftTabs1.ShowToolTips = CheckToolTips.Checked
End Sub

Private Sub ButtonAccent_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonAccent.Click
    ColorDialog1.Color = SftTabs1.AccentColor
    If ColorDialog1.ShowDialog(Me) = DialogResult.OK Then
        SftTabs1.AccentColor = ColorDialog1.Color
    End If
End Sub

Private Sub ButtonAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonAdd.Click
    addedTabs += 1

See Also SftTabs Class | Classes | SftTabs/NET 3.0