set_line_styleT_set_line_styleSetLineStyleSetLineStyleset_line_style (算子)

名称

set_line_styleT_set_line_styleSetLineStyleSetLineStyleset_line_style — 定义轮廓输出模式。

签名

set_line_style( : : WindowHandle, Style : )

Herror T_set_line_style(const Htuple WindowHandle, const Htuple Style)

void SetLineStyle(const HTuple& WindowHandle, const HTuple& Style)

void HWindow::SetLineStyle(const HTuple& Style) const

static void HOperatorSet.SetLineStyle(HTuple windowHandle, HTuple style)

void HWindow.SetLineStyle(HTuple style)

def set_line_style(window_handle: HHandle, style: Sequence[int]) -> None

描述

set_line_styleset_line_styleSetLineStyleSetLineStyleSetLineStyleset_line_style defines the output pattern of the margin of regions and of XLD contours. The information is used by operators like disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region, disp_linedisp_lineDispLineDispLineDispLinedisp_line, disp_polygondisp_polygonDispPolygonDispPolygonDispPolygondisp_polygon etc. The current value can be queried with get_line_styleget_line_styleGetLineStyleGetLineStyleGetLineStyleget_line_styleStyleStyleStyleStylestylestyle contains up to five pairs of values. The first value is the length of the visible contour part, the second is the length of the invisible part. The value pairs are used cyclical for contour output.

执行信息

参数

WindowHandleWindowHandleWindowHandleWindowHandlewindowHandlewindow_handle (输入控制)  window HWindow, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

窗口句柄。

StyleStyleStyleStylestylestyle (输入控制)  integer-array HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Contour pattern.

默认值: []

值范围: 1 ≤ Style Style Style Style style style ≤ 120

示例(HDevelop)

* stroke line: X-Windows
set_line_style(WindowHandle,[20,7])
* point-stroke line: X-Windows
set_line_style(WindowHandle,[20,7,3,7])
* passing line (standard)
set_line_style(WindowHandle,[])

示例(C)

Htuple LineStyle;

/* stroke line: X-Windows */
create_tuple(&LineStyle,2);
set_i(LineStyle,20,0);
set_i(LineStyle,7,1);
T_set_line_style(WindowHandle,LineStyle);
destroy_tuple(LineStyle);

/* point-stroke line: X-Windows */
create_tuple(&LineStyle,4);
set_i(LineStyle,20,0);
set_i(LineStyle,7,1);
set_i(LineStyle,3,2);
set_i(LineStyle,7,3);
T_set_line_style(WindowHandle,LineStyle);
destroy_tuple(LineStyle);

/* passing line (standard) */
create_tuple(&LineStyle,0);
T_set_line_style(WindowHandle,LineStyle);
destroy_tuple(LineStyle);

示例(HDevelop)

* stroke line: X-Windows
set_line_style(WindowHandle,[20,7])
* point-stroke line: X-Windows
set_line_style(WindowHandle,[20,7,3,7])
* passing line (standard)
set_line_style(WindowHandle,[])

示例(HDevelop)

* stroke line: X-Windows
set_line_style(WindowHandle,[20,7])
* point-stroke line: X-Windows
set_line_style(WindowHandle,[20,7,3,7])
* passing line (standard)
set_line_style(WindowHandle,[])

示例(HDevelop)

* stroke line: X-Windows
set_line_style(WindowHandle,[20,7])
* point-stroke line: X-Windows
set_line_style(WindowHandle,[20,7,3,7])
* passing line (standard)
set_line_style(WindowHandle,[])

结果

set_line_styleset_line_styleSetLineStyleSetLineStyleSetLineStyleset_line_style returns 2 ( H_MSG_TRUE) if the parameter is correct and the window is valid.否则将抛出异常。

可能的前趋

get_line_styleget_line_styleGetLineStyleGetLineStyleGetLineStyleget_line_style

可能的后继

disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region

另见

get_line_styleget_line_styleGetLineStyleGetLineStyleGetLineStyleget_line_style, set_line_approxset_line_approxSetLineApproxSetLineApproxSetLineApproxset_line_approx, disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region

模块

基础