ArcGIS Pro 2.7 API Reference Guide
CreateSlice Method

ArcGIS.Desktop.Mapping Namespace > VoxelLayer Class : CreateSlice Method
The definition of the slice to be created
Create a slice. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public void CreateSlice( 
   SliceDefinition sliceDef
)
Public Sub CreateSlice( _
   ByVal sliceDef As SliceDefinition _
) 

Parameters

sliceDef
The definition of the slice to be created
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run
Invalid slice definition specified
Null slice specified
Remarks
Slice definitions must have both a ArcGIS.Desktop.Mapping.Voxel.SliceDefinition.VoxelPosition and ArcGIS.Desktop.Mapping.Voxel.SliceDefinition.Normal specified or an ArgumentException will be thrown.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

VoxelLayer Class
VoxelLayer Members