Interface IInfoProvider
Controls, die dieses interface implementieren, können genaueren Einfluß auf das Erscheinen im InfoPopup nehmen, z.B. dynamisch sich ändernde Texte oder verschiedene ToolTips, je nach Position
Namespace: CADability.UserInterface
Assembly: CADability.dll
Syntax
public interface IInfoProvider
Methods
| Improve this Doc View SourceGetInfoText(Int32, InfoLevelMode)
Liefert den darzustellenden InfoText, ggf. abhängig von der Positionsnummer und dem Level (wie ausführlich)
Declaration
string GetInfoText(int Index, InfoLevelMode Level)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | Index | Die Positionsnummer aus GetPositionIndex |
| InfoLevelMode | Level | Der Level (0: einfach, 1: ausführlich) |
Returns
| Type | Description |
|---|---|
| System.String | Der darzustellende Text |
GetPositionIndex(Point)
Liefert die Positionsnummer für mehrere verschiedene Texte
Declaration
int GetPositionIndex(Point ScreenCursorPosition)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.Point | ScreenCursorPosition | Bildschirmposition des Cursors |
Returns
| Type | Description |
|---|---|
| System.Int32 | Die Positionsnummer, oder 0, wenn es nur einen Text gibt, oder -1, wenn an dieser Stelle nichts angezeigt werden soll. |
GetVerticalPosition(Int32)
Retursn a preferred position for the InfoPopup (tooltip) relative to the cursor position. If 0 is returned, the InfoPopup will find a default position. A positive value is the number of pixels below the cursor position, a negative value above the cursor position.
Declaration
int GetVerticalPosition(int Index)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | Index |
Returns
| Type | Description |
|---|---|
| System.Int32 |