Search Results for

    Show / Hide Table of Contents

    Class MetaPage

    Metafile page, part of metafile

    Inheritance
    object
    MetaPage
    Implements
    IDisposable
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Reportman.Drawing
    Assembly: Reportman.Drawing.dll
    Syntax
    public class MetaPage : IDisposable

    Constructors

    MetaPage(MetaFile)

    Constructor

    Declaration
    public MetaPage(MetaFile meta)
    Parameters
    Type Name Description
    MetaFile meta

    Fields

    Objects

    Collection of objects in the page

    Declaration
    public List<MetaObject> Objects
    Field Value
    Type Description
    List<MetaObject>

    Orientation

    Page orientation

    Declaration
    public OrientationType Orientation
    Field Value
    Type Description
    OrientationType

    PageDetail

    Page size information, filled when UpdatedPageSize is true

    Declaration
    public PageSizeDetail PageDetail
    Field Value
    Type Description
    PageSizeDetail

    UpdatedPageSize

    If true, the page size differs from the default page size in the MetaFile

    Declaration
    public bool UpdatedPageSize
    Field Value
    Type Description
    bool

    Version

    Metafile version format

    Declaration
    public MetaFile.MetaFileVersion Version
    Field Value
    Type Description
    MetaFile.MetaFileVersion

    WindowsMetafile

    Reference to a Windows Metafile, for optimization, and depending on configuration of print driver, the variable will contain a System.Drawing.Image.Metafile with page contents

    Declaration
    public object WindowsMetafile
    Field Value
    Type Description
    object

    WindowsMetafileScale

    Windows Metafile scale, valid only if WindowsMetafile is assigned

    Declaration
    public float WindowsMetafileScale
    Field Value
    Type Description
    float

    stringlist

    The strings in the page are save to into this list, for memory and file size optimization

    Declaration
    public SortedList stringlist
    Field Value
    Type Description
    SortedList

    Properties

    MemStream

    The memory stream contains information from objects in the page, la MetaObjectImages not shared

    Declaration
    public MemoryStream MemStream { get; }
    Property Value
    Type Description
    MemoryStream

    MetaFile

    The MetaFile owner of the page

    Declaration
    public MetaFile MetaFile { get; }
    Property Value
    Type Description
    MetaFile

    PhysicHeight

    Physic height of the page

    Declaration
    public int PhysicHeight { get; }
    Property Value
    Type Description
    int

    PhysicWidth

    Physic with of the page

    Declaration
    public int PhysicWidth { get; }
    Property Value
    Type Description
    int

    Pool

    The Pool is a char array containing all the strings in the page, the MetaObjects reference strings by position and length inside this array

    Declaration
    public char[] Pool { get; }
    Property Value
    Type Description
    char[]

    Methods

    AddStream(MemoryStream, bool)

    Add a stream to the main stream of the page

    Declaration
    public int AddStream(MemoryStream astream, bool shared)
    Parameters
    Type Name Description
    MemoryStream astream

    Stream to add

    bool shared

    If true, the stream will be added to the MetaFile instead to the MetaPage

    Returns
    Type Description
    int

    Stream position

    AddString(string)

    Add a string

    Declaration
    public int AddString(string value)
    Parameters
    Type Name Description
    string value

    String to add

    Returns
    Type Description
    int

    Postion where the string was added into the pool, if the string already exists, it returns the position of the string

    Clear()

    Clear all objects in the page

    Declaration
    public void Clear()

    Dispose()

    Free resources

    Declaration
    public virtual void Dispose()

    DrawImage(int, int, int, int, ImageDrawStyleType, int, MemoryStream)

    Declaration
    public MetaObjectImage DrawImage(int PosX, int PosY, int PrintWidth, int PrintHeight, ImageDrawStyleType DrawStyle, int dpires, MemoryStream nvalue)
    Parameters
    Type Name Description
    int PosX
    int PosY
    int PrintWidth
    int PrintHeight
    ImageDrawStyleType DrawStyle
    int dpires
    MemoryStream nvalue
    Returns
    Type Description
    MetaObjectImage

    DrawShape(int, int, int, int, ShapeType, BrushType, PenType, int, int, int)

    Declaration
    public MetaObjectDraw DrawShape(int PosX, int PosY, int PrintWidth, int PrintHeight, ShapeType Shape, BrushType BrushStyle, PenType PenStyle, int PenWidth, int PenColor, int BrushColor)
    Parameters
    Type Name Description
    int PosX
    int PosY
    int PrintWidth
    int PrintHeight
    ShapeType Shape
    BrushType BrushStyle
    PenType PenStyle
    int PenWidth
    int PenColor
    int BrushColor
    Returns
    Type Description
    MetaObjectDraw

    DrawText(int, int, int, int, string, string, string, short, short, int, int, bool, int, PDFFontType, TextAlignType, TextAlignVerticalType, bool, bool, bool, PrintStepType)

    Declaration
    public MetaObjectText DrawText(int PosX, int PosY, int PrintWidth, int PrintHeight, string Text, string WFontName, string LFontName, short FontSize, short FontRotation, int FontColor, int BackColor, bool Transparent, int FontStyle, PDFFontType Type1Font, TextAlignType horzalign, TextAlignVerticalType vertalign, bool SingleLine, bool WordWrap, bool CutText, PrintStepType PrintStep)
    Parameters
    Type Name Description
    int PosX
    int PosY
    int PrintWidth
    int PrintHeight
    string Text
    string WFontName
    string LFontName
    short FontSize
    short FontRotation
    int FontColor
    int BackColor
    bool Transparent
    int FontStyle
    PDFFontType Type1Font
    TextAlignType horzalign
    TextAlignVerticalType vertalign
    bool SingleLine
    bool WordWrap
    bool CutText
    PrintStepType PrintStep
    Returns
    Type Description
    MetaObjectText

    GetAnnotationText(MetaObject)

    Get the annotation value

    Declaration
    public string GetAnnotationText(MetaObject obj)
    Parameters
    Type Name Description
    MetaObject obj
    Returns
    Type Description
    string

    The text referenced in the AnnotationP position

    GetLFontNameText(MetaObjectText)

    Get the Linux Font Name text value from the pool

    Declaration
    public string GetLFontNameText(MetaObjectText obj)
    Parameters
    Type Name Description
    MetaObjectText obj
    Returns
    Type Description
    string

    The text referenced in the LFontNameP position

    GetStream(MetaObjectImage)

    Get a memory stream from a MetaObjectImage

    Declaration
    public MemoryStream GetStream(MetaObjectImage obj)
    Parameters
    Type Name Description
    MetaObjectImage obj
    Returns
    Type Description
    MemoryStream

    The stream referenced in StreamPos

    GetText(MetaObjectText)

    Get the text value from the pool

    Declaration
    public string GetText(MetaObjectText obj)
    Parameters
    Type Name Description
    MetaObjectText obj
    Returns
    Type Description
    string

    The text referenced in the TexP position

    GetWFontNameText(MetaObjectText)

    Get the Windows Font Name text value from the pool

    Declaration
    public string GetWFontNameText(MetaObjectText obj)
    Parameters
    Type Name Description
    MetaObjectText obj
    Returns
    Type Description
    string

    The text referenced in the WFontNameP position

    LoadFromStream(Stream)

    Load the MetaPage from a stream

    Declaration
    public void LoadFromStream(Stream astream)
    Parameters
    Type Name Description
    Stream astream

    Source stream

    SaveToStream(Stream)

    Save the MetaPage into a stream

    Declaration
    public void SaveToStream(Stream astream)
    Parameters
    Type Name Description
    Stream astream

    Destination stream

    Implements

    IDisposable
    In this article
    Back to top Generated by DocFX