NtDisplayObjectText

Derived from NtDisplayObject.
 
The NtTimeChartControl creates NtDisplayObjectText objects for data objects that are declared (by the according NtDisplayDef) to be drawn as text. In the image below you can find such NtDisplayObjectTexts in the second and fifth row ('Temperature' and 'Antibiotics'). For simplicity in this example the texts are equal to the object ids of the objects.


The NtDisplayObjectText class does not have any public constructor. It can only be created by the NtTimeChartControl.

Class Hierarchy:

System.Object

NtDisplayObject

NtDisplayObjectText

Methods and Properties:

Modifier / Return Value Name and Parameters Description
public NtDataObject DataObject Readonly property that allows you to access the embedded NtDataObject. This is helpful because several events like mouse clicking on Display Objects will hand you over their NtDisplayObjectEventArgs that reference a NtDisplayObjectText. Then you typically need to get access to its embedded NtDataObject to react properly.
Inherited from NtDisplayObject.
public int CurrentRow The zero base index of the row the NtDisplayObjectText is currently in. Currently means that this might change any time due to users dragging rows and thereby change their order or the application setting a new NtPerspective. This property is readonly.
Inherited from NtDisplayObject.
public int CategoryRow The is the row that hides this NtDisplayObjectText in case of a superior category being closed: Explanation: In case that this display object is in a row which is member of a category then this category can be closed. Then the NtDisplayObjectText is hidden. And instead of the object a so called category line (a thin vertical line in place of the object) is being drawn directly onto the category row. This readonly property returns the row index of the closing category if there is one. If not, it returns -1.
Inherited from NtDisplayObject.
public Rectangle PaintRect This is the rectangle that comprises this NtDisplayObjectText. It is given in row coordinates. This means that X=0 is the left end of the current sheet, Y=0 means top of the row it resides in. It is not an error if the paint rectangle exeeds the sheet horizontally or the row vertically. Painting will be clipped accordingly.
When you do custom drawing, the NtTimeChartControl's framework will initialize this property correctly before calling your implementation of the NtCustomObjectPaint interface so you do not need to bother about coordinate transformation but can simply draw within this rectangle.
Inherited from NtDisplayObject.
public int DisplayMethod This is the display method for this NtDisplayObjectText. Please see NtDisplayDef for details. In case of custom drawn objects this property is greater than 100.
Inherited from NtDisplayObject.
public NtDisplayDef DisplayDef The NtDisplayDef that is set for this NtDisplayObjectText because it is set for the data type this NtDisplayObject represents.
Inherited from NtDisplayObject.
public SizeF TextSize When initializing the object the text size is being calculated. Later on it is used to calculate the drawing rectangle. You can query the text size via this property. This property is readonly.

Members:

Type Name Description
public Bitmap bitmap The bitmap of this NtDisplayObject. It is null because the text is drawn without using the bitmap.
Inherited from NtDisplayObject.