Interface IUIService
Assembly: CADability.dll
Syntax
public interface IUIService
Properties
|
Improve this Doc
View Source
CurrentMousePosition
Declaration
Point CurrentMousePosition { get; }
Property Value
| Type |
Description |
| System.Drawing.Point |
|
|
Improve this Doc
View Source
ModifierKeys
Declaration
Keys ModifierKeys { get; }
Property Value
Methods
|
Improve this Doc
View Source
CreatePaintInterface(Bitmap, Double)
Declaration
IPaintTo3D CreatePaintInterface(Bitmap paintToBitmap, double precision)
Parameters
| Type |
Name |
Description |
| System.Drawing.Bitmap |
paintToBitmap |
|
| System.Double |
precision |
|
Returns
|
Improve this Doc
View Source
GetBitmap(String)
Returns a bitmap from a bitmap strip, name has the format filename:index(, where filename should be part of the resources?)
Declaration
Bitmap GetBitmap(string name)
Parameters
| Type |
Name |
Description |
| System.String |
name |
|
Returns
| Type |
Description |
| System.Drawing.Bitmap |
|
|
Improve this Doc
View Source
GetClipboardData(Type)
Declaration
object GetClipboardData(Type typeOfData)
Parameters
| Type |
Name |
Description |
| System.Type |
typeOfData |
|
Returns
| Type |
Description |
| System.Object |
|
|
Improve this Doc
View Source
GetDataPresent(Object)
Declaration
GeoObjectList GetDataPresent(object data)
Parameters
| Type |
Name |
Description |
| System.Object |
data |
|
Returns
|
Improve this Doc
View Source
HasClipboardData(Type)
Declaration
bool HasClipboardData(Type typeOfData)
Parameters
| Type |
Name |
Description |
| System.Type |
typeOfData |
|
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
SetClipboardData(GeoObjectList, Boolean)
Declaration
void SetClipboardData(GeoObjectList objects, bool copy)
Parameters
|
Improve this Doc
View Source
ShowColorDialog(ref Color)
Declaration
DialogResult ShowColorDialog(ref Color color)
Parameters
| Type |
Name |
Description |
| System.Drawing.Color |
color |
|
Returns
|
Improve this Doc
View Source
Declaration
DialogResult ShowMessageBox(string text, string caption, MessageBoxButtons buttons)
Parameters
| Type |
Name |
Description |
| System.String |
text |
|
| System.String |
caption |
|
| MessageBoxButtons |
buttons |
|
Returns
|
Improve this Doc
View Source
ShowOpenFileDlg(String, String, String, ref Int32, out String)
Shows an open file dialog. The id is used to cache the last directory, so with different ids you get different
start directories. The filter is a windows OpenFileDialog filter, filterIndex specifies,
which of the filters should be used as default, fileName returns the name of the selected file.
Declaration
DialogResult ShowOpenFileDlg(string id, string title, string filter, ref int filterIndex, out string fileName)
Parameters
| Type |
Name |
Description |
| System.String |
id |
to keep default directories of different usages apart
|
| System.String |
title |
title of the dialog, or simply open file, when title is null
|
| System.String |
filter |
|
| System.Int32 |
filterIndex |
|
| System.String |
fileName |
the filename
|
Returns
|
Improve this Doc
View Source
ShowPageSetupDlg(ref PrintDocument, PageSettings, out Int32, out Int32, out Boolean)
Declaration
DialogResult ShowPageSetupDlg(ref PrintDocument printDocument1, PageSettings pageSettings, out int width, out int height, out bool landscape)
Parameters
| Type |
Name |
Description |
| System.Drawing.Printing.PrintDocument |
printDocument1 |
|
| System.Drawing.Printing.PageSettings |
pageSettings |
|
| System.Int32 |
width |
|
| System.Int32 |
height |
|
| System.Boolean |
landscape |
|
Returns
|
Improve this Doc
View Source
ShowPrintDlg(ref PrintDocument)
Declaration
DialogResult ShowPrintDlg(ref PrintDocument printDocument)
Parameters
| Type |
Name |
Description |
| System.Drawing.Printing.PrintDocument |
printDocument |
|
Returns
|
Improve this Doc
View Source
ShowProgressBar(Boolean, Double, String)
Shows or hides a progress bar.
Declaration
void ShowProgressBar(bool show, double percent = 0, string title = null)
Parameters
| Type |
Name |
Description |
| System.Boolean |
show |
true: show, false: hide
|
| System.Double |
percent |
progress percentage (0..100)
|
| System.String |
title |
|
|
Improve this Doc
View Source
ShowSaveFileDlg(String, String, String, ref Int32, ref String)
Declaration
DialogResult ShowSaveFileDlg(string id, string title, string filter, ref int filterIndex, ref string fileName)
Parameters
| Type |
Name |
Description |
| System.String |
id |
|
| System.String |
title |
|
| System.String |
filter |
|
| System.Int32 |
filterIndex |
|
| System.String |
fileName |
|
Returns
Events
|
Improve this Doc
View Source
ApplicationIdle
Declaration
event EventHandler ApplicationIdle
Event Type
| Type |
Description |
| System.EventHandler |
|