Syncfusion.XlsIO.Base
Example 


Syncfusion.XlsIO Namespace > IShape Interface : IsShapeVisible Property

IsShapeVisible Property

Indicates whether shape is visible.
Syntax
'Declaration
 
Property IsShapeVisible As Boolean
'Usage
 
Dim instance As IShape
Dim value As Boolean
 
instance.IsShapeVisible = value
 
value = instance.IsShapeVisible
bool IsShapeVisible {get; set;}
Example
The following code illustrates how to set visibility of the shape.
using Syncfusion.XlsIO;
            
class Program
{
    static void Main()
    {
        using (ExcelEngine excelEngine = new ExcelEngine())
        {
            //Create worksheet
            IApplication application = excelEngine.Excel;
            application.DefaultVersion = ExcelVersion.Excel2013;
            IWorkbook workbook = application.Workbooks.Create(1);
            IWorksheet worksheet = workbook.Worksheets[0];
            
            //Add shape
            IShape shape = worksheet.Shapes.AddAutoShapes(AutoShapeType.Rectangle, 2, 2, 40, 100);
            
            //Set shape visibility
            shape.IsShapeVisible = false;
            
            //Save and dispose
            workbook.SaveAs("Shapes.xlsx");
            workbook.Close();
        }
    }
}
AssemblyVersion

Syncfusion.XlsIO.Base: 17.1460.0.47

See Also