---
schema_version: "1"
id: 380f55bd0bbba966585116f791958d09f071d20d73e0a432b736dfb761b970f7
title: DescribeTabResult Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_schema_describetabresult.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_schema_describetabresult.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: c460be24def00fe0a54bc7616dfc3cf4ed5b78439e47272403a2a8379305f7d2
description: Contains tab metadata information for a tab in a standard or custom app available in the Salesforce user interface.Returns a list of color metadata information for all colors associated with this tab. Each color is associated with a theme and context. Returns the URL for the main 32 x 32-pixel icon for a tab. This icon corresponds to the current theme (theme3) and appears next to the heading at the top of most pages.Returns a list of icon metadata information for all icons associated with this tab. Each icon is associated with a theme and context.Returns the display label of this tab.Returns the URL for the 16 x 16-pixel icon that represents a tab. This icon corresponds to the current theme (theme3) and appears in related lists and other locations.Returns the name of the sObject that is primarily displayed on this tab (for tabs that display a particular SObject).Returns a fully qualified URL for viewing this tab.Returns true if this is a custom tab, or false if this is a standard tab.
---
# DescribeTabResult Class

Contains tab metadata information for a tab in a standard or custom app available in the Salesforce user interface.

## Namespace

[Schema](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_Schema.htm "The Schema namespace provides classes and methods for schema metadata information.")

## Usage

The getTabs method of the Schema.DescribeTabSetResult returns a list of Schema.DescribeTabResult objects that describe the tabs of one app.

The methods in the Schema.DescribeTabResult class can be called using their property counterparts. For each method starting with get, you can omit the get prefix and the ending parentheses () to call the property counterpart. For example, tabResultObj.label is equivalent to tabResultObj.getLabel(). Similarly, for each method starting with is, omit the is prefix and the ending parentheses (). For example, tabResultObj.isCustom is equivalent to tabResultObj.custom.

## DescribeTabResult Methods

The following are methods for DescribeTabResult. All are instance methods.

- **[getColors()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_schema_describetabresult.htm#apex_Schema_DescribeTabResult_getColors)**  
    Returns a list of color metadata information for all colors associated with this tab. Each color is associated with a theme and context.
- **[getIconUrl()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_schema_describetabresult.htm#apex_Schema_DescribeTabResult_getIconUrl)**  
    Returns the URL for the main 32 x 32-pixel icon for a tab. This icon corresponds to the current theme (theme3) and appears next to the heading at the top of most pages.
- **[getIcons()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_schema_describetabresult.htm#apex_Schema_DescribeTabResult_getIcons)**  
    Returns a list of icon metadata information for all icons associated with this tab. Each icon is associated with a theme and context.
- **[getLabel()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_schema_describetabresult.htm#apex_Schema_DescribeTabResult_getLabel)**  
    Returns the display label of this tab.
- **[getMiniIconUrl()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_schema_describetabresult.htm#apex_Schema_DescribeTabResult_getMiniIconUrl)**  
    Returns the URL for the 16 x 16-pixel icon that represents a tab. This icon corresponds to the current theme (theme3) and appears in related lists and other locations.
- **[getSobjectName()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_schema_describetabresult.htm#apex_Schema_DescribeTabResult_getSobjectName)**  
    Returns the name of the sObject that is primarily displayed on this tab (for tabs that display a particular SObject).
- **[getUrl()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_schema_describetabresult.htm#apex_Schema_DescribeTabResult_getUrl)**  
    Returns a fully qualified URL for viewing this tab.
- **[isCustom()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_schema_describetabresult.htm#apex_Schema_DescribeTabResult_isCustom)**  
    Returns true if this is a custom tab, or false if this is a standard tab.

### getColors()

Returns a list of color metadata information for all colors associated with this tab. Each color is associated with a theme and context.

#### Signature

public List<Schema.DescribeColorResult> getColors()

#### Return Value

Type: [List](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<[Schema.DescribeColorResult](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_schema_describecolorresult.htm#apex_class_schema_describecolorresult "Contains color metadata information for a tab.")\>

### getIconUrl()

Returns the URL for the main 32 x 32-pixel icon for a tab. This icon corresponds to the current theme (theme3) and appears next to the heading at the top of most pages.

#### Signature

public String getIconUrl()

#### Return Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### getIcons()

Returns a list of icon metadata information for all icons associated with this tab. Each icon is associated with a theme and context.

#### Signature

public List<Schema.DescribeIconResult> getIcons()

#### Return Value

Type: [List](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<[Schema.DescribeIconResult](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_schema_describeiconresult.htm#apex_class_schema_describeiconresult "Contains icon metadata information for a tab.")\>

### getLabel()

Returns the display label of this tab.

#### Signature

public String getLabel()

#### Return Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### getMiniIconUrl()

Returns the URL for the 16 x 16-pixel icon that represents a tab. This icon corresponds to the current theme (theme3) and appears in related lists and other locations.

#### Signature

public String getMiniIconUrl()

#### Return Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### getSobjectName()

Returns the name of the sObject that is primarily displayed on this tab (for tabs that display a particular SObject).

#### Signature

public String getSobjectName()

#### Return Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### getUrl()

Returns a fully qualified URL for viewing this tab.

#### Signature

public String getUrl()

#### Return Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### isCustom()

Returns true if this is a custom tab, or false if this is a standard tab.

#### Signature

public Boolean isCustom()

#### Return Value

Type: [Boolean](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_boolean.htm#apex_methods_system_boolean "Contains methods for the Boolean primitive data type.")