GetJoinType
Returns the join type of the stroke.
Syntax
expression.GetJoinType();
expression - A variable that represents an ApiStroke class.
Parameters
This method doesn't have any parameters.
Returns
LineJoinType | null
Example
Read the join type of a shape border in a spreadsheet.
// 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 spreadsheet.
let worksheet = Api.GetActiveSheet();
let fill = Api.CreateSolidFill(Api.RGB(255, 200, 100));
let stroke = Api.CreateStroke(8 * 12700, Api.CreateSolidFill(Api.RGB(0, 0, 255)));
let shape = worksheet.AddShape("rect", 60 * 36000, 40 * 36000, fill, stroke, 3, 0, 2, 2);
let retrievedStroke = shape.GetLine();
retrievedStroke.SetJoinType("miter");
let joinType = retrievedStroke.GetJoinType();
worksheet.GetRange("A1").SetValue("Join type: " + joinType);