Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ShapeTitleOptions.Visibility Property

Gets or sets a value indicating whether or not shape titles should be visible.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v24.2.dll

NuGet Package: DevExpress.Win.Map

#Declaration

[DefaultValue(VisibilityMode.Auto)]
public VisibilityMode Visibility { get; set; }

#Property Value

Type Default Description
VisibilityMode Auto

A VisibilityMode enumeration value.

Available values:

Name Description
Auto

Visibility is determined automatically.

Visible

An element is visible.

Hidden

An element is hidden.

#Property Paths

You can access this nested property as listed below:

Object Type Path to Visibility
MapShape
.TitleOptions .Visibility

#Example

private void cbTitleVisibility_CheckedChanged(object sender, System.EventArgs e) {
    if (cbTitleVisibility.Checked)
        dot.TitleOptions.Visibility = VisibilityMode.Visible;
    else
        dot.TitleOptions.Visibility = VisibilityMode.Hidden;
}
See Also