Table of Contents

Method PreviewSample

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

PreviewSample(DxfDatabase, CadMLeaderStyleSettings)

Makes the sample multileader of the Manager's preview with its parts told apart: the drawing of Sample(DxfDatabase, CadMLeaderStyleSettings), its multileader broken into the entities it draws as (ExplodeBroken()) in model space, each with a handle of its own, the multileader erased. The parts follow the order the pieces come in: the content first, the words (Text) or the block (Block); then the dogleg of each leader (Landing); then each leader line (LeaderLine, a polyline or a spline) and its arrowhead (Arrow, a solid or the insert of its block).

public static CadStyleSample PreviewSample(DxfDatabase source, CadMLeaderStyleSettings settings)

Parameters

source DxfDatabase

The drawing edited, whose text style's font the words take; null for Standard's own.

settings CadMLeaderStyleSettings

The settings of the style.

Returns

CadStyleSample

The sample; of no parts where the settings do not make a style.

Exceptions

ArgumentNullException

Thrown when the settings are null.