HeaderPane
Main
Hide
Share Link
Print

Image Property, TabClass Class

Defines the tab's image.

Class: TabClass
Namespace: Softelvdm.SftTabsNET
Assembly: Softelvdm.SftTabsNET

Syntax

public new Image Image { get; set; }
Public Shadows Property Image As Image

Value

The image of the first ImagePartClass object in the CellBaseClass.Parts collection.

The default value is null/Nothing.

Comments

Defines the tab's image.

Examples

C# View entire sample code

            checkFlyby.Checked = sftTabs1.FlybyHighlight;
            checkImages.Checked = true;
            checkReorder.Checked = sftTabs1.AllowReordering;
            checkButtons.Checked = sftTabs1.Buttons.CloseButton;
            checkToolTips.Checked = sftTabs1.ShowToolTips;
            loading = false;

            foreach (TabClass tab in sftTabs1.Tabs) {
                if (tab.Image != null)
                    tabImages.Add(tab, tab.Image);
            }
            UpdateOptions();
        }

        private void FillCombo(ComboBox combo, object current) {
            foreach (object value in Enum.GetValues(current.GetType()))

VB.NET View entire sample code

    CheckFlyby.Checked = SftTabs1.FlybyHighlight
    CheckImages.Checked = True
    CheckReorder.Checked = SftTabs1.AllowReordering
    CheckButtons.Checked = SftTabs1.Buttons.CloseButton
    CheckToolTips.Checked = SftTabs1.ShowToolTips
    loading = False

    For Each tab As TabClass In SftTabs1.Tabs
        If tab.Image IsNot Nothing Then
            tabImages.Add(tab, tab.Image)
        End If
    Next
    UpdateOptions()
End Sub

Private Sub FillCombo(ByVal combo As ComboBox, ByVal current As Object)

See Also TabClass Class | Classes | SftTabs/NET 3.0