Created
July 24, 2020 12:29
-
-
Save bjoerntx/e12a24fd34344a8b237a119e82a03f68 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// create a new donut shape | |
TXTextControl.Drawing.Shape shape = | |
new TXTextControl.Drawing.Shape(TXTextControl.Drawing.ShapeType.Donut); | |
// set the color and border width | |
shape.ShapeFill.Color = Color.Red; | |
shape.ShapeOutline.Color = Color.Yellow; | |
shape.ShapeOutline.Width = 200; | |
if (textControl1.Drawings.GetActivatedItem() != null) | |
{ | |
// add the shape to the drawing control | |
((TXDrawingControl)textControl1.Drawings.GetActivatedItem().Drawing).Shapes.Add(shape); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment