Show / Hide Table of Contents

Method CreateCube

CreateCube(Color, double)

Creates a simple marker scene symbol with cube style.

Declaration
public static SimpleMarkerSceneSymbol CreateCube(Color color, double size)
Parameters
Type Name Description
Color color

The color of the cube symbol.

double size

The size in meters of base of the cube in each dimension symbol.

Returns
Type Description
SimpleMarkerSceneSymbol

A SimpleMarkerSceneSymbol using a cube style.

Exceptions
Type Condition
ArgumentException

Invalid argument.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 300.0
.NET Windows100.13 - 300.0
.NET Android200.2 - 300.0
.NET iOS200.0 - 300.0
.NET Framework100.3 - 200.8
Xamarin.Android100.0 - 100.14
Xamarin.iOS100.0 - 100.15
UWP100.3 - 200.8

CreateCube(Color, double, SceneSymbolAnchorPosition)

Creates a simple marker scene symbol with cube style.

Declaration
public static SimpleMarkerSceneSymbol CreateCube(Color color, double size, SceneSymbolAnchorPosition anchorPosition)
Parameters
Type Name Description
Color color

The color of the cube symbol.

double size

The size in meters of base of the cube in each dimension symbol.

SceneSymbolAnchorPosition anchorPosition

The anchor position of the cube symbol.

Returns
Type Description
SimpleMarkerSceneSymbol

A SimpleMarkerSceneSymbol using a cube style.

Exceptions
Type Condition
ArgumentException

Invalid argument.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 300.0
.NET Windows100.13 - 300.0
.NET Android200.2 - 300.0
.NET iOS200.0 - 300.0
.NET Framework100.3 - 200.8
Xamarin.Android100.0 - 100.14
Xamarin.iOS100.0 - 100.15
UWP100.3 - 200.8
In this article
Provide feedback
Back to top Copyright © 2025 Esri.