Class ExportPresenter
Basic presenter for Exports which generates a graphical comparison result.
Inheritance
Inherited Members
Namespace: inetsoftware.Pdfc.Presenter
Assembly: inetsoftware.Pdfc.dll
Syntax
public abstract class ExportPresenter : BasePresenter
Fields
PAINT_BOTH
Toggle between Left/Right/Both. Both document will be presented.
Declaration
public const byte PAINT_BOTH = 3
Field Value
Type | Description |
---|---|
System.Byte |
PAINT_LEFT
Toggle between Left/Right/Both. Left mean the first document.
Declaration
public const byte PAINT_LEFT = 1
Field Value
Type | Description |
---|---|
System.Byte |
PAINT_RIGHT
Toggle between Left/Right/Both. Right mean the second document.
Declaration
public const byte PAINT_RIGHT = 2
Field Value
Type | Description |
---|---|
System.Byte |
Methods
SetBackgroundColor(Nullable<Int32>)
Set the background color. This color is used for the areas where to page is, between the pages.Set to null to skip painting a background.
Declaration
public void SetBackgroundColor(int? argb)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.Int32> | argb | The background color as ARGB value |
SetOverlapAlpha(Single)
Set the alpha to use for overlapping export. Has only an effect if SetPaintOverlap(Boolean) is true. Must be between 0.0 and 1.0, where 0 means the right document completely overwrites the left document and 1 means the left document overwrites the right document.
Default is 0.5.
Declaration
public void SetOverlapAlpha(float overlapAlpha)
Parameters
Type | Name | Description |
---|---|---|
System.Single | overlapAlpha | the overlapAlpha |
SetPaintOverlap(Boolean)
Set to true if the compared documents must be exported in overlapping mode.
Default is false.
If this is true, the option SetPaintSides(Byte) has no effect.
Declaration
public void SetPaintOverlap(bool paintOverlap)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | paintOverlap | the paintOverlap |
SetPaintSides(Byte)
Set weather the first or the second of both compared documents must be painted.
Default is PAINT_BOTH
This option has no effect if SetPaintOverlap(Boolean) is set to true.
Declaration
public void SetPaintSides(byte sides)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | sides | document sides to paint |