Private Shared Sub InitAlternativeBranch1(ByVal shape As NShape) shape.Init1DShape(EN1DShapeXForm.Vector) shape.EndX = 200 shape.Height = 0 Dim geometry As NGeometry = shape.Geometry If True Then Dim plotFigure As NMoveTo = geometry.RelMoveTo(0R, 0.5R) geometry.RelLineTo(1R, 0.5R) plotFigure.CloseFigure = False geometry.ClipWithTextBlock = ENGeometryClipWithShapeBlock.Clip End If Dim textBlock As NTextBlock = New NTextBlock() textBlock.ResizeMode = ENTextBlockResizeMode.TextSize textBlock.SetFx(NTextBlock.AngleProperty, "-ATAN2($Parent.EndY - $Parent.BeginY, $Parent.EndX - $Parent.BeginX)") shape.TextBlock = textBlockEnd Sub