segmentOrientation property

EnumValue segmentOrientation

Gets or sets the orientation of a GraphObject that is in a Link or Panel.Graduated. This controls the automatic rotation of the object by the Link Panel or Graduated Panel. The only accepted values are the Link "Orient..." values of Link and the default value: Link.None.

When the value is Link.None, the #angle of this object is unchanged as the link is routed. Setting this to a value of Link.OrientAlong will cause routing to set the #angle to be the angle of the segment that this object is on. Other values compute the angle somewhat differently. If the value is changed back to Link.None, the #angle of this object is set to zero.

Note that when this property is not Link.None, this property takes precedence over any setting or binding of the #angle property. Changes to the angle caused by orientation might not result in Changed events, and any original value for the angle may be lost.

In the case of Graduated Panels, if this value is Link.None, Link.OrientAlong, or Link.OrientUpright, any TextBlock label #angle will be respected. Depending on this value, the effective TextBlock angle will be either fixed or relative to the slope of the path where it is rendered.

For examples of how to use this property, see Link Labels.

Implementation

_i3.EnumValue get segmentOrientation => _i4.getProperty(
      this,
      'segmentOrientation',
    );
void segmentOrientation=(EnumValue value)

Implementation

set segmentOrientation(_i3.EnumValue value) {
  _i4.setProperty(
    this,
    'segmentOrientation',
    value,
  );
}