ArcGIS Pro 2.7 API Reference Guide
ScaleBar Property
Example 

ArcGIS.Desktop.Mapping Namespace > ScaleBarStyleItem Class : ScaleBar Property
Gets or sets the ArcGIS.Core.CIM.CIMScaleBar of the scale bar style item.
Syntax
public CIMScaleBar ScaleBar {get; set;}
Public Property ScaleBar As CIMScaleBar
Exceptions
ExceptionDescription
This property must be called within the lambda passed to QueuedTask.Run
Example
ScaleBarStyleItem scaleBarItem = null;
CIMScaleBar scaleBar = await QueuedTask.Run<CIMScaleBar>(() =>
{
  return scaleBarItem.ScaleBar;
});
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

ScaleBarStyleItem Class
ScaleBarStyleItem Members