Class ShapeItem
A report print item that draws a geometric shape (rectangle, ellipse, line, etc.) with a configurable pen and brush, optionally deriving the fill color from an evaluated expression.
Implements
Inherited Members
Namespace: Reportman.Reporting
Assembly: Reportman.Reporting.dll
Syntax
public class ShapeItem : PrintPosItem, IDisposable
Constructors
View SourceShapeItem()
Declaration
public ShapeItem()
Properties
View SourceBrushColor
Declaration
public int BrushColor { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
BrushColorExpression
Declaration
public string BrushColorExpression { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
BrushStyle
Declaration
public BrushType BrushStyle { get; set; }
Property Value
| Type | Description |
|---|---|
| BrushType |
Color
Declaration
public int Color { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
PenColor
Declaration
public int PenColor { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
PenStyle
Declaration
public PenType PenStyle { get; set; }
Property Value
| Type | Description |
|---|---|
| PenType |
PenWidth
Declaration
public int PenWidth { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Shape
Declaration
public ShapeType Shape { get; set; }
Property Value
| Type | Description |
|---|---|
| ShapeType |
Methods
View SourceDoPrint(PrintOut, int, int, int, int, MetaFile, Point, ref bool)
This procedure will print the item into the MetaFile, internal implementation
Declaration
protected override void DoPrint(PrintOut adriver, int aposx, int aposy, int newwidth, int newheight, MetaFile metafile, Point MaxExtent, ref bool PartialPrint)
Parameters
| Type | Name | Description |
|---|---|---|
| PrintOut | adriver | Report processing driver |
| int | aposx | Horizontal position in twips |
| int | aposy | Vertical position in twips |
| int | newwidth | Width of the bounding box in twips |
| int | newheight | Height of the bounding box in twips |
| MetaFile | metafile | Destination MetaFile |
| Point | MaxExtent | Maximum extension |
| bool | PartialPrint | Returns true if some text will expand multiple pages |
Overrides
View SourceGetClassName()
Internal function to determine the object type name
Declaration
protected override string GetClassName()
Returns
| Type | Description |
|---|---|
| string | Object type name |
Overrides
View SourceGetExtension(PrintOut, Point, bool)
This procedure will return the current size of the printed item
Declaration
public override Point GetExtension(PrintOut adriver, Point MaxExtent, bool ForcePartial)
Parameters
| Type | Name | Description |
|---|---|---|
| PrintOut | adriver | Report processing driver |
| Point | MaxExtent | Maximum extension |
| bool | ForcePartial |
Returns
| Type | Description |
|---|---|
| Point |