Class WorksheetShapeCollection
Represents a collection of shapes on a Worksheet.
Inheritance
System.Object
WorksheetShapeCollection
Assembly: DRIT.Spreadsheet.dll
Syntax
public class WorksheetShapeCollection : ShapeCollection
Properties
Worksheet
Declaration
public Worksheet Worksheet { get; }
Property Value
Methods
AddConnector(ShapeType, Int32, String, String, PointDoubleUnit, SizeEmu)
Declaration
public ConnectorShape AddConnector(ShapeType shapeType, int id, string name, string label, PointDoubleUnit cellOffset, SizeEmu size)
Parameters
Returns
AddConnector(ShapeType, Int32, String, String, Position, Size)
Declaration
public ConnectorShape AddConnector(ShapeType shapeType, int id, string name, string label, Position cellOffset, Size size)
Parameters
| Type |
Name |
Description |
| ShapeType |
shapeType |
|
| System.Int32 |
id |
|
| System.String |
name |
|
| System.String |
label |
|
| Position |
cellOffset |
|
| Size |
size |
|
Returns
AddConnector(Int32, String, String, Position, Size)
Declaration
public ConnectorShape AddConnector(int id, string name, string label, Position cellOffsetPixel, Size size)
Parameters
| Type |
Name |
Description |
| System.Int32 |
id |
|
| System.String |
name |
|
| System.String |
label |
|
| Position |
cellOffsetPixel |
|
| Size |
size |
|
Returns
AddConnector(String, Position, Size)
Declaration
public ConnectorShape AddConnector(string label, Position cellOffsetPixel, Size size)
Parameters
| Type |
Name |
Description |
| System.String |
label |
|
| Position |
cellOffsetPixel |
|
| Size |
size |
|
Returns
AddPicture(String, String, Position, Size)
Declaration
public PictureShape AddPicture(string filePath, string anchoredCellLabel, Position cellOffsetPixel, Size size)
Parameters
| Type |
Name |
Description |
| System.String |
filePath |
|
| System.String |
anchoredCellLabel |
|
| Position |
cellOffsetPixel |
|
| Size |
size |
|
Returns
AddShape(AbstractShape)
Declaration
public void AddShape(AbstractShape sheetShape)
Parameters
AddShape(ShapeType, Int32, String, String, Position, Size)
Declaration
public Shape AddShape(ShapeType shapeType, int id, string name, string cellLabel, Position cellOffset, Size size)
Parameters
| Type |
Name |
Description |
| ShapeType |
shapeType |
|
| System.Int32 |
id |
|
| System.String |
name |
|
| System.String |
cellLabel |
|
| Position |
cellOffset |
|
| Size |
size |
|
Returns
AddShape(ShapeType, String, Position, Size)
Declaration
public Shape AddShape(ShapeType type, string label, Position cellOffsetPixel, Size size)
Parameters
Returns
AddShape(Int32, String, String, Position, Size)
Declaration
public Shape AddShape(int id, string name, string cellLabel, Position cellOffset, Size size)
Parameters
| Type |
Name |
Description |
| System.Int32 |
id |
|
| System.String |
name |
|
| System.String |
cellLabel |
|
| Position |
cellOffset |
|
| Size |
size |
|
Returns
AddTextBox(Int32, String, String, Position, Size)
Declaration
public TextBoxShape AddTextBox(int id, string name, string label, Position cellOffset, Size size)
Parameters
| Type |
Name |
Description |
| System.Int32 |
id |
|
| System.String |
name |
|
| System.String |
label |
|
| Position |
cellOffset |
|
| Size |
size |
|
Returns
AddTextBox(String, Position, Size)
Declaration
public TextBoxShape AddTextBox(string label, Position cellOffsetPixel, Size size)
Parameters
| Type |
Name |
Description |
| System.String |
label |
|
| Position |
cellOffsetPixel |
|
| Size |
size |
|
Returns
GetDiagram(String)
Declaration
public DiagramShape GetDiagram(string name)
Parameters
| Type |
Name |
Description |
| System.String |
name |
|
Returns
GetFirstConnectorByCell(String)
Declaration
public ConnectorShape GetFirstConnectorByCell(string label)
Parameters
| Type |
Name |
Description |
| System.String |
label |
|
Returns
GetFirstShapeByCell(String)
Declaration
public Shape GetFirstShapeByCell(string label)
Parameters
| Type |
Name |
Description |
| System.String |
label |
|
Returns
GetShape(String)
Declaration
public Shape GetShape(string name)
Parameters
| Type |
Name |
Description |
| System.String |
name |
|
Returns
OnRemove(AbstractShape)
Declaration
protected override void OnRemove(AbstractShape shape)
Parameters
Overrides