Method Measures
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
Measures(CadStyleSample, CadMLeaderStyleSettings, string)
Measures what a setting sets on the sample, as a callout: the arrowhead's size along the leader from its tip
(ArrowSize), the landing's length (LandingDistance), the gap from its end to the words
(LandingGap), the height of the words (TextHeight) and the angle the first segment is held to
(FirstSegmentAngle, an arc from the x axis), and, of a style that leaves the landing out, the ghost of the dogleg it would
have (IncludeLanding). The points are in the drawing coordinates of the sample, so the lengths
are the values times the style's scale; the label has the value as the dialog shows it.
public static IReadOnlyList<CadStyleMeasure> Measures(CadStyleSample sample, CadMLeaderStyleSettings settings, string key)
Parameters
sampleCadStyleSampleThe sample, as PreviewSample(DxfDatabase, CadMLeaderStyleSettings) made it.
settingsCadMLeaderStyleSettingsThe settings of the style.
keystringThe key of the setting.
Returns
- IReadOnlyList<CadStyleMeasure>
The measures; none where the setting sets no distance, or the sample lacks the part it is measured on.
Exceptions
- ArgumentNullException
Thrown when the sample or the settings are null.