GetZoom
...
Returns the current "zoom" scale factor for the active page.
...
- Create a New Form application
- Add a button to the form
- Add PlanSwift to reference (Planswift9_tlb in the uses)
- Copy code to button onclick event
API Call
Delphi
Code Block |
---|
language | delphi |
---|
theme | RDark |
---|
firstline | 1 |
---|
title | Using PlanSwift Object Model |
---|
linenumbers | true |
---|
collapse | true |
---|
|
//PlanSwift Code:
var
nScaleFactor: double;
begin
nScaleFactor := PlanSwift.Get_Zoom;
end;
//FreshDesk Code:
procedure TForm1.psGetZoom(Sender: TObject);var
ps: IPlanSwift;
zoom: string;
begin
//Create Planswift Interface
ps := coPlanswift.Create;
//Call inputbox to change the zoom level
zoom := InputBox('Change Zoom Level','Change Zoom Level',FloatToStr(ps.Zoom));
//Set Zoom Value
ps.Zoom := strToInt(zoom);
//Free Planswift Interface
ps := nil;
end; |
C#
Code Block |
---|
language | c# |
---|
theme | RDark |
---|
firstline | 1 |
---|
title | Using IItem Object Model |
---|
linenumbers | true |
---|
collapse | true |
---|
|
public class PlanswiftApi
{
private PlanSwift Planswift { get; }
public PlanSwiftApi()
{
Planswift = new PlanSwift();
}
} |
Code Block |
---|
language | c# |
---|
theme | RDark |
---|
firstline | 1 |
---|
title | Using PlanSwift Object Model |
---|
linenumbers | true |
---|
|
Coming soon |
VB/VBA (OLE)
Code Block |
---|
language | vb |
---|
firstline | 1 |
---|
title | Using IItem Object Model |
---|
linenumbers | true |
---|
|
Coming soon |
Code Block |
---|
language | vb |
---|
firstline | 1 |
---|
title | Using PlanSwift Object Model |
---|
linenumbers | true |
---|
|
Coming soon |