DXFReaderNETControlShowPalette Method
|
Shows the default Palette dialog for the control.
Namespace:
DXFReaderNET
Assembly:
DXFReaderNET (in DXFReaderNET.dll) Version: 20.10.54
Syntax public AciColor ShowPalette(
AciColor Color,
bool SelectLayerColor = false
)
Public Function ShowPalette (
Color As AciColor,
Optional SelectLayerColor As Boolean = false
) As AciColor
public:
AciColor^ ShowPalette(
AciColor^ Color,
bool SelectLayerColor = false
)
member ShowPalette :
Color : AciColor *
?SelectLayerColor : bool
(* Defaults:
let _SelectLayerColor = defaultArg SelectLayerColor false
*)
-> AciColor
METHOD ShowPalette(
Color AS AciColor,
SelectLayerColor AS LOGIC := FALSE
) AS AciColor
Parameters
- Color
- Type: DXFReaderNETAciColor
The initial ACI color displayed when Palette dialog is shown - SelectLayerColor (Optional)
- Type: SystemBoolean
If set to true the buttons 'ByLayer' and 'ByBlock are disabled.
Return Value
Type:
AciColorThe value returned corresponds to the
ACI color selectd if the Ok is pressed
Remarks Examples
It is possible to localize the dialog strings using some internal properties as shown in the samples and picture below:
[C#]
dxfReaderNETControl1.ColorPaletteDialogText = "选择颜色";
dxfReaderNETControl1.ColorPaletteDialogButtoOkText = "好";
dxfReaderNETControl1.ColorPaletteDialogButtonCancelText = "取消";
dxfReaderNETControl1.ColorPaletteDialogLabelIndexColor = "索引色";
dxfReaderNETControl1.ColorPaletteDialogLabelRGB = "红,绿,蓝";
dxfReaderNETControl1.ColorPaletteDialogLabelColor = "颜色";
dxfReaderNETControl1.DXF.CurrentColor = dxfReaderNETControl1.ShowPalette(dxfReaderNETControl1.DXF.CurrentColor);
[Visual Basic]
With DxfReaderNETControl1
.ColorPaletteDialogText = "选择颜色"
.ColorPaletteDialogButtoOkText = "好"
.ColorPaletteDialogButtonCancelText = "取消"
.ColorPaletteDialogLabelIndexColor = "索引色"
.ColorPaletteDialogLabelRGB = "红,绿,蓝"
.ColorPaletteDialogLabelColor = "颜色"
.DXF.CurrentColor = .ShowPalette(.DXF.CurrentColor)
End With
See Also