Table of Contents

Class CanvasOptions

Namespace
OpenCAD2D.Wpf
Assembly
OpenCAD2D.Rendering.dll

How the canvas draws a space.

public sealed class CanvasOptions
Inheritance
CanvasOptions
Inherited Members

Properties

Background

Gets or sets the colour of the canvas behind the drawing as 0xRRGGBB; black by default.

BlockEditorBackground

Gets or sets the colour of the canvas behind a block open in the Block Editor as 0xRRGGBB; #3B4049 by default, so that the editor is never taken for model space.

CustomGripColor

Gets or sets the colour of a dynamic block's custom grips as 0xRRGGBB, AutoCAD's GRIPDYNCOLOR: #00BFFF by default, the colour of index 140 that AutoCAD 2021 starts with.

FontName

Gets or sets the name of the font the text is drawn in.

GripColor

Gets or sets the colour of the grips as 0xRRGGBB: #3D9BFF by default.

Hover

Gets or sets the handle of the entity under the cursor, drawn at least 2 pixels wide in its colour taken halfway to the selection colour, so that a white line under the cursor turns a light blue; may be null.

LineweightScale

Gets or sets how much wider than their printed width lineweights are drawn while shown, the Adjust Display Scale of Lineweight Settings: 1 by default, a 0.50 mm line about 2 pixels wide, 4 at 2.

Paper

Gets or sets the colour of the paper of a layout as 0xRRGGBB; white by default.

Selected

Gets or sets the handles of the selected entities, drawn in the selection colour and at least 2 pixels wide; may be null.

SelectionColor

Gets or sets the colour of selected entities and their grips as 0xRRGGBB.

ShowLineWeights

Gets or sets whether line weights are drawn; off, every line is one pixel wide, as AutoCAD shows a drawing with lineweights hidden.

SmallTextAsBars

Gets or sets whether a text under 5 pixels high is drawn as a solid bar of its colour the size of its box, at least a pixel each way, as AutoCAD draws a sheet zoomed out; true by default. False, a text under 3 pixels high is left out and one of 3 to 5 pixels is drawn in its letters. A plot is never affected: it draws every text in its letters.

VisibleLineColor

Gets or sets what white and black lines (AutoCAD's colour 7) are drawn as on a dark canvas, 0xRRGGBB: white by default.