Class PreviewWPF
Lógica de interacción para PreviewWPF.xaml
Implements
Inherited Members
Namespace: Reportman.WPF
Assembly: Reportman.WPF.dll
Syntax
public class PreviewWPF : UserControl, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, IComponentConnector
Constructors
PreviewWPF()
Declaration
public PreviewWPF()
Properties
MetaFile
MetaFile to process
Declaration
public MetaFile MetaFile { get; set; }
Property Value
| Type | Description |
|---|---|
| MetaFile |
Page
Get or set current page, first page index is 0.
Declaration
public int Page { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
ColorFromInteger(int)
Declaration
public static Color ColorFromInteger(int aint)
Parameters
| Type | Name | Description |
|---|---|---|
| int | aint |
Returns
| Type | Description |
|---|---|
| Color |
DrawObject(DrawingContext, MetaPage, MetaObject)
Draws an object, into a Graphics surface
Declaration
public void DrawObject(DrawingContext graph, MetaPage page, MetaObject obj)
Parameters
| Type | Name | Description |
|---|---|---|
| DrawingContext | graph | The grapchis surface |
| MetaPage | page | The MetaFilePage that contains the object |
| MetaObject | obj | The object to be drawn |
FontFromObject(MetaPage, MetaObjectText)
Create a Font object from a MetaObjectText structure
Declaration
public Typeface FontFromObject(MetaPage page, MetaObjectText obj)
Parameters
| Type | Name | Description |
|---|---|---|
| MetaPage | page | MetaFilePage |
| MetaObjectText | obj | MetaObjectText, containing information to create the font |
Returns
| Type | Description |
|---|---|
| Typeface | A Font object, created with parameter information |
InitializeComponent()
InitializeComponent
Declaration
public void InitializeComponent()
OnRender(DrawingContext)
Declaration
protected override void OnRender(DrawingContext drawingContext)
Parameters
| Type | Name | Description |
|---|---|---|
| DrawingContext | drawingContext |
Overrides
SetMetaFile(MetaFile)
Internal procedure initializing data when setting metafile, it draws also the first page
Declaration
protected void SetMetaFile(MetaFile meta)
Parameters
| Type | Name | Description |
|---|---|---|
| MetaFile | meta |