Table of Contents

Method FromPathData

Namespace
OpenCAD2D.Plugins
Assembly
OpenCAD2D.Core.dll

FromPathData(string)

Makes an icon from path data on a square of 24, drawn 2 wide: FromPathData("M4 12 H20 M12 4 V20") is a plus.

public static CadPluginIcon FromPathData(string pathData)

Parameters

pathData string

The path data. The window falls back to the presenter's plugin icon where it cannot read it, and logs one Warn.

Returns

CadPluginIcon

The icon.

Exceptions

ArgumentNullException

Thrown when the path data is null.

ArgumentException

Thrown when the path data is empty or only white space.