Click or drag to resize

DXFReaderNETControlShowPlotSettings Method

Opens the Plot Settings dialog to configure plotting options for this control.

Namespace:  DXFReaderNET
Assembly:  DXFReaderNET (in DXFReaderNET.dll) Version: 20.12.2
Syntax
public bool ShowPlotSettings()

Return Value

Type: Boolean
True if the user confirms the dialog (OK) and the plot settings are applied; otherwise false (Cancel/Close).
Remarks
Displays a modal dialog. When accepted, it updates plot-related properties of the control such as: PlotMode, PlotUnits, PlotOrientation, PlotScale, PlotOffset, PlotPenWidth, and PlotRendering. This action does not modify drawing entities.
Examples
It is possible to localize the dialog strings using some internal properties as shown in the samples below. PlotSettingsDialogPlotModes contains 4 plot modes, in this order: Display, Extents, Limits, Centered. PlotSettingsDialogRenderings contains 3 rendering modes, in this order: GrayScale, Monochrome, Color. PlotSettingsDialogOrientations contains 2 orientations, in this order: Portrait, Landscape. PlotSettingsDialogUnitTypes contains 2 units, in this order: Millimeters, Inchs.
[C#]
dxfReaderNETControl1.PlotSettingsDialogText = "打印设置";
dxfReaderNETControl1.PlotSettingsDialogButtonOkText = "好";
dxfReaderNETControl1.PlotSettingsDialogButtonCancelText = "取消";
dxfReaderNETControl1.PlotSettingsDialogMarginsText = "边距";
dxfReaderNETControl1.PlotSettingsDialogTopText = "上";
dxfReaderNETControl1.PlotSettingsDialogBottomText = "下";
dxfReaderNETControl1.PlotSettingsDialogLeftText = "左";
dxfReaderNETControl1.PlotSettingsDialogRightText = "右";
dxfReaderNETControl1.PlotSettingsDialogPlotOffsetText = "打印偏移";
dxfReaderNETControl1.PlotSettingsDialogGeneralText = "常规";
dxfReaderNETControl1.PlotSettingsDialogUnitsText = "单位";
dxfReaderNETControl1.PlotSettingsDialogOrientationText = "方向";
dxfReaderNETControl1.PlotSettingsDialogRenderingText = "渲染";
dxfReaderNETControl1.PlotSettingsDialogPlotModeText = "打印模式";
dxfReaderNETControl1.PlotSettingsDialogDimensionText = "尺寸";
dxfReaderNETControl1.PlotSettingsDialogPenWidthText = "笔宽";
dxfReaderNETControl1.PlotSettingsDialogAspectRatioText = "纵横比";
dxfReaderNETControl1.PlotSettingsDialogScaleText = "比例";
dxfReaderNETControl1.PlotSettingsDialogPlotModes = new string[4] { "显示", "范围", "界限", "居中" };
dxfReaderNETControl1.PlotSettingsDialogRenderings = new string[3] { "灰度", "单色", "彩色" };
dxfReaderNETControl1.PlotSettingsDialogOrientations = new string[2] { "纵向", "横向" };
dxfReaderNETControl1.PlotSettingsDialogUnitTypes = new string[2] { "毫米", "英寸" };
dxfReaderNETControl1.ShowPlotSettings();
See Also