AddShapeInPixel Method

Spread.Services Documentation
AddShapeInPixel Method
Collapse All Expand All Language Filter: All Language Filter: Multiple Language Filter: Visual Basic Language Filter: C#
C#

GrapeCity.Documents.Spread.Drawing Namespace > IShapes Interface : AddShapeInPixel Method

Specifies the type of AutoShape to create.
The position (in pixels) of the upper-left corner of the AutoShape's boundary box relative to the upper-left corner of the document.
The position (in pixels) of the upper-left corner of the AutoShape's boundary box relative to the upper-left corner of the document.
The width and height of the AutoShape's boundary box, in pixels.
The width and height of the AutoShape's boundary box, in pixels.
Returns the IShape object that represents the new AutoShape in a worksheet.
Syntax

- C#

    IShape AddShapeInPixel(
       AutoShapeType type,
       System.double left,
       System.double top,
       System.double width,
       System.double height
    )

#### Parameters

type
  Specifies the type of AutoShape to create.
left
  The position (in pixels) of the upper-left corner of the AutoShape's boundary box relative to the upper-left corner of the document.
top
  The position (in pixels) of the upper-left corner of the AutoShape's boundary box relative to the upper-left corner of the document.
width
  The width and height of the AutoShape's boundary box, in pixels.
height
  The width and height of the AutoShape's boundary box, in pixels.

#### Return Value

The IShape object.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

#### Reference

IShapes Interface
IShapes Members

Copyright © GrapeCity, inc. All rights reserved.

Send Feedback