Class

MobileSegment


Description

A single segment in a MobileSegmentedButton control.

Properties

Name

Type

Read-Only

AllowMulticolorSymbol

Boolean

Caption

String

Enabled

Boolean

Icon

Picture

Selected

Boolean

Symbol

String

Width

Double

Methods

Name

Parameters

Returns

Constructor

caption As String

Constructor

icon As Picture

Property descriptions


MobileSegment.AllowMulticolorSymbol

AllowMulticolorSymbol As Boolean

Allows to use multicolored version of the symbol when it is set to True. If there is no multicolored version available, it will default to monochrome.

Important

This property is not currently supported for Android.


MobileSegment.Caption

Caption As String

The text that will appear in the segment.


MobileSegment.Enabled

Enabled As Boolean

True if the Segment is enabled. The default is True.

This example disables the second Segment. It is in the Opening event of the MobileSegmentedButton.

Var s As MobileSegment = Me.SegmentAt(1)

s.Enabled = False

MobileSegment.Icon

Icon As Picture

The icon/picture that will be displayed on the segment.


MobileSegment.Selected

Selected As Boolean

If True, the segment is selected.


MobileSegment.Symbol

Symbol As String

Allows setting the symbol name(s) to be used as the icon for the MobileSegment. If none is found it sets the assigned Picture from the Icon property. If any is found, then it sets this as the image instead of the Picture set on the Icon property.

The list of supported symbols can be found here:


MobileSegment.Width

Width As Double

The width of the segment.

Method descriptions


MobileSegment.Constructor

Constructor(caption As String)

Note

Constructors are special methods called when you create an object with the New keyword and pass in the parameters above.

Creates a MobileSegment with the caption passed.


MobileSegment.Constructor

Constructor(icon As Picture)

Creates a MobileSegment with the icon passed.

Compatibility

Project Types

Mobile

Operating Systems

All

See also

Object parent class; MobileSegmentedButton control.