[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'fpvectorial' (#fcl)

TvVectorialDocument

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

The main class from fpvectorial representing a vectorial document

Declaration

Source position: fpvectorial.pas line 272

type TvVectorialDocument = class

public

  Width: Double;

  

The width of the document

  Height: Double;

  

The height of the document

  Name: String;

  

The title of the vectorial document

  ZoomLevel: Double;

  

The zoom level in which the document is currently displayed

  SelectedvElement: TvEntity;

  

The currently selected element

  constructor Create; virtual;

  

Constructor

  destructor Destroy; override;

  

Destructor

  procedure Assign();

  

Copies all data from another vectorial document

  procedure AssignTo();

  

Copies itself to another instance of this class

  procedure WriteToFile();

  

Writes the document to a file.

  procedure WriteToStream();

  

Writes the document to a stream

  procedure WriteToStrings();

  

Writes a vectorial document to a TStrings

  procedure ReadFromFile();

  

Reads the document from a file

  procedure ReadFromStream();

  

Reads the document from a stream

  procedure ReadFromStrings();

  

Reads a vectorial document from a TStrings

public

  class function GetFormatFromExtension();

  

Returns the vectorial file format from a filename

public

  function GetDetailedFileFormat;

  

Returns an extended description of the file format

  procedure GuessDocumentSize;

  

Tries to guess the size of the document

  procedure GuessGoodZoomLevel();

  

Tries to guess the best zoom to display the document

  function GetPage();

  

Returns one of the pages of the document

  function GetPageCount;

  

Returns the number of pages in the document

  function GetCurrentPage;

  

Returns the currently selected page

  procedure SetCurrentPage();

  

Selects a page in the document

  function AddPage;

  

Adds a new page to the document

  procedure Clear; virtual;

  

Clears all data in the document

end;

Inheritance

TvVectorialDocument

  

The main class from fpvectorial representing a vectorial document

|

TObject

Description

The main class from fpvectorial representing a vectorial document


Documentation generated on: Oct 09 2011