[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Document.Section.ResourcedCanvasItem

ResourcedCanvasItem Class

Represents a canvas element with resources.

Inheritance
ResourcedCanvasItem
Namespace: GrapeCity.ActiveReports.Document.Section
Assembly: MESCIUS.ActiveReports.Core.Document.dll
Syntax
public abstract class ResourcedCanvasItem : CanvasItem, IDisposable, ICloneable, IBordered
Examples
public class MyResourcedCanvasItem : ResourcedCanvasItem
{
	public MyResourcedCanvasItem(IImageConverterService imageConverterService, CanvasType ctType) : base(imageConverterService, ctType)
	{
	}
	public MyResourcedCanvasItem(IImageConverterService imageConverterService, CanvasType canvasType, float left, float top, float width, float height, string strLink) : base(imageConverterService, canvasType, left, top, width, height, strLink)
	{
	}
    protected override Guid ImageFormatGuid() => ImageFormat.Bmp.Guid;
	protected override string ImageTypeName() => ResourceManager.ImageResource.BitmapTypeName;
	internal override ResourcedCanvasItem Clone(ResourceManager targetResourceMgr) => new MyResourcedCanvasItem(ImageConverterService, Type);
}

Constructors

Name Description
ResourcedCanvasItem(IImageConverterService, CanvasType)

Initializes a new instance of the ResourcedCanvasItem class.

ResourcedCanvasItem(IImageConverterService, CanvasType, float, float, float, float)

Initializes a new instance of the ResourcedCanvasItem class.

Fields

Name Description
ImageConverterService

Service that converts image data from one format to another.

_height

The height of ResourcedCanvasItem structure.

_left

The x-coordinate of the left edge of ResourcedCanvasItem structure.

_top

The y-coordinate of the left edge of ResourcedCanvasItem structure.

_width

The width of ResourcedCanvasItem structure.

Properties

Name Description
Bounds

Gets the bounds of the item.

InnerKey

Gets the inner key.

Methods

Name Description
Clone()

Performs a cloning of this instance.

ConvertImageData(ImageFormat[], bool)

Converts image to one of allowed image format if needed.

GetImageStream()

Gets a stream for loading image data from resource pool.

ImageFormatGuid()

Gets the image format unique identifier.

ImageTypeName()

Gets fully qualified name of the image type.

ReadBounds(BinaryReader, short)

Reads bounds in RDF format

ReadTitleAndDescription(BinaryReader, short)

Reads title and description from RDF document

ToString()

Returns a string that represents the current object.

WriteBounds(BinaryWriter, short)

Writes bounds in RDF format

WriteTitleAndDescription(BinaryWriter, short)

Writes title and description in RDF format