DXFReaderNETControlShowPalette Method
|
Shows the default Palette dialog for the control.
Namespace:
DXFReaderNET
Assembly:
DXFReaderNET (in DXFReaderNET.dll) Version: 20.12.2
Syntaxpublic AciColor ShowPalette(
AciColor Color,
bool SelectLayerColorEnabled = true,
bool SelectTrueColorVisible = true
)
Public Function ShowPalette (
Color As AciColor,
Optional SelectLayerColorEnabled As Boolean = true,
Optional SelectTrueColorVisible As Boolean = true
) As AciColor
public:
AciColor^ ShowPalette(
AciColor^ Color,
bool SelectLayerColorEnabled = true,
bool SelectTrueColorVisible = true
)
member ShowPalette :
Color : AciColor *
?SelectLayerColorEnabled : bool *
?SelectTrueColorVisible : bool
(* Defaults:
let _SelectLayerColorEnabled = defaultArg SelectLayerColorEnabled true
let _SelectTrueColorVisible = defaultArg SelectTrueColorVisible true
*)
-> AciColor
METHOD ShowPalette(
Color AS AciColor,
SelectLayerColorEnabled AS LOGIC := TRUE,
SelectTrueColorVisible AS LOGIC := TRUE
) AS AciColor
Parameters
- Color
- Type: DXFReaderNETAciColor
The initial ACI color displayed when Palette dialog is shown - SelectLayerColorEnabled (Optional)
- Type: SystemBoolean
If set to true the buttons 'ByLayer' and 'ByBlock are enabled. - SelectTrueColorVisible (Optional)
- Type: SystemBoolean
If set to true the TrueColor option is visible.
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