GetJoinType
返回笔触的联接类型。
语法
expression.GetJoinType();
expression - 表示 ApiStroke 类的变量。
参数
此方法没有任何参数。
返回值
LineJoinType | null
示例
在文档中读取形状边框的连接类型。
// Get the join type to find out how the stroke corners are drawn.
// Apply a miter join to a rectangle's stroke, then read back its join type in a document.
let doc = Api.GetDocument();
let paragraph = doc.GetElement(0);
let fill = Api.CreateSolidFill(Api.RGB(255, 200, 100));
let stroke = Api.CreateStroke(8 * 12700, Api.CreateSolidFill(Api.RGB(0, 0, 255)));
let shape = Api.CreateShape("rect", 100 * 36000, 50 * 36000, fill, stroke);
paragraph.AddDrawing(shape);
let retrievedStroke = shape.GetLine();
retrievedStroke.SetJoinType("miter");
let joinType = retrievedStroke.GetJoinType();
paragraph.AddText("Join type: " + joinType);