Class ArcShape
Namespace: Aspose.Cells.Drawing
Assembly: Aspose.Cells.dll (25.2.0)
Represents the arc shape.
public class ArcShape : Shape
Inheritance
Inherited Members
Shape.GetResultOfSmartArt(), Shape.ToFrontOrBack(int), Shape.GetLockedProperty(ShapeLockType), Shape.SetLockedProperty(ShapeLockType, bool), Shape.AddHyperlink(string), Shape.RemoveHyperlink(), Shape.MoveToRange(int, int, int, int), Shape.AlignTopRightCorner(int, int), Shape.GetConnectionPoints(), Shape.ToImage(Stream, ImageType), Shape.ToImage(string, ImageOrPrintOptions), Shape.ToImage(Stream, ImageOrPrintOptions), Shape.GetLinkedCell(bool, bool), Shape.SetLinkedCell(string, bool, bool), Shape.GetInputRange(bool, bool), Shape.SetInputRange(string, bool, bool), Shape.UpdateSelectedValue(), Shape.CalculateTextSize(), Shape.FormatCharacters(int, int, Font, StyleFlag), Shape.Characters(int, int), Shape.GetRichFormattings(), Shape.RemoveActiveXControl(), Shape.IsSameSetting(object), Shape.GetActualBox(), Shape.MacroName, Shape.IsEquation, Shape.IsSmartArt, Shape.ZOrderPosition, Shape.Name, Shape.AlternativeText, Shape.Title, Shape.Line, Shape.Fill, Shape.ShadowEffect, Shape.Reflection, Shape.Glow, Shape.SoftEdges, Shape.ThreeDFormat, Shape.FormatPicture, Shape.IsHidden, Shape.IsAspectRatioLocked, Shape.RotationAngle, Shape.Hyperlink, Shape.Id, Shape.Spid, Shape.Spt, Shape.Worksheet, Shape.IsGroup, Shape.IsInGroup, Shape.IsWordArt, Shape.TextEffect, Shape.IsLocked, Shape.IsPrintable, Shape.MsoDrawingType, Shape.AutoShapeType, Shape.AnchorType, Shape.Placement, Shape.UpperLeftRow, Shape.UpperDeltaY, Shape.UpperLeftColumn, Shape.UpperDeltaX, Shape.LowerRightRow, Shape.LowerDeltaY, Shape.LowerRightColumn, Shape.LowerDeltaX, Shape.Right, Shape.Bottom, Shape.Width, Shape.WidthInch, Shape.WidthPt, Shape.WidthCM, Shape.Height, Shape.HeightInch, Shape.HeightPt, Shape.HeightCM, Shape.Left, Shape.LeftInch, Shape.LeftCM, Shape.Top, Shape.TopInch, Shape.TopCM, Shape.TopToCorner, Shape.LeftToCorner, Shape.X, Shape.Y, Shape.WidthScale, Shape.HeightScale, Shape.TopInShape, Shape.LeftInShape, Shape.WidthInShape, Shape.HeightInShape, Shape.Group, Shape.Type, Shape.HasLine, Shape.IsFilled, Shape.IsFlippedHorizontally, Shape.IsFlippedVertically, Shape.ActualLowerRightRow, Shape.RelativeToOriginalPictureSize, Shape.LinkedCell, Shape.InputRange, Shape.TextShapeType, Shape.TextBody, Shape.Font, Shape.TextOptions, Shape.Text, Shape.IsRichText, Shape.HtmlText, Shape.TextVerticalOverflow, Shape.TextHorizontalOverflow, Shape.IsTextWrapped, Shape.TextOrientationType, Shape.TextHorizontalAlignment, Shape.TextVerticalAlignment, Shape.TextDirection, Shape.TextBoxOptions, Shape.ControlData, Shape.ActiveXControl, Shape.Paths, Shape.Geometry, Shape.CreateId, Shape.IsDecorative, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Examples
csharp
[C#]
//Instantiate a new Workbook.
Workbook excelbook = new Workbook();
//Add an arc shape.
Aspose.Cells.Drawing.ArcShape arc1 = excelbook.Worksheets[0].Shapes.AddArc(2, 0, 2, 0, 130, 130);
//Set the placement of the arc.
arc1.Placement = PlacementType.FreeFloating;
//Set the fill format.
arc1.Fill.FillType = FillType.Solid;
arc1.Fill.SolidFill.Color = Color.Blue;
//Set the line style.
arc1.Line.CompoundType = MsoLineStyle.Single;
//Set the line weight.
arc1.Line.Weight = 2;
//Set the color of the arc line.
arc1.Line.FillType = FillType.Solid;
arc1.Line.SolidFill.Color = Color.Red;
//Set the dash style of the arc.
arc1.Line.DashStyle = MsoLineDashStyle.Solid;
//Add another arc shape.
Aspose.Cells.Drawing.ArcShape arc2 = excelbook.Worksheets[0].Shapes.AddArc(9, 0, 2, 0, 130, 130);
//Set the placement of the arc.
arc2.Placement = PlacementType.FreeFloating;
//Set the line style.
arc2.Line.CompoundType = MsoLineStyle.Single;
//Set the line weight.
arc2.Line.Weight = 1;
//Set the color of the arc line.
arc2.Line.FillType = FillType.Solid;
arc2.Line.SolidFill.Color = Color.Blue;
//Set the dash style of the arc.
arc2.Line.DashStyle = MsoLineDashStyle.Solid;
//Save the excel file.
excelbook.Save("tstarcs.xls");
[VB..NET]
'Instantiate a new Workbook.
Dim excelbook As Workbook = New Workbook()
'Add an arc shape.
Dim arc1 As Aspose.Cells.Drawing.ArcShape = excelbook.Worksheets(0).Shapes.AddArc(2, 0, 2, 0, 130, 130)
'Set the placement of the arc.
arc1.Placement = PlacementType.FreeFloating
'Set the fill format.
arc1.Fill.FillType = FillType.Solid
arc1.Fill.SolidFill.Color = Color.Blue
'Set the line style.
arc1.Line.CompoundType = MsoLineStyle.Single
'Set the line weight.
arc1.Line.Weight = 2
'Set the color of the arc line.
arc1.Line.FillType = FillType.Solid
arc1.Line.SolidFill.Color = Color.Red
'Set the dash style of the arc.
arc1.Line.DashStyle = MsoLineDashStyle.Solid
'Add another arc shape.
Dim arc2 As Aspose.Cells.Drawing.ArcShape = excelbook.Worksheets(0).Shapes.AddArc(9, 0, 2, 0, 130, 130)
'Set the placement of the arc.
arc2.Placement = PlacementType.FreeFloating
'Set the line style.
arc2.Line.CompoundType = MsoLineStyle.Single
'Set the line weight.
arc2.Line.Weight = 1
'Set the color of the arc line.
arc2.Line.FillType = FillType.Solid
arc2.Line.SolidFill.Color = Color.Blue
'Set the dash style of the arc.
arc2.Line.DashStyle = MsoLineDashStyle.Solid
'Save the excel file.
excelbook.Save("tstarcs.xls")