Leadtools.MedicalViewer Requires Medical Imaging license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
SetTag(Int32,MedicalViewerTagAlignment,MedicalViewerTagType,String) Method
See Also 
Leadtools.MedicalViewer Namespace > MedicalViewerCell Class > SetTag Method : SetTag(Int32,MedicalViewerTagAlignment,MedicalViewerTagType,String) Method



row
The line at which the overlay text will be drawn.
position
The row parameter alignment.
type
The type of tag.
userText
The user text.
Adds a tag (overlay text) to the cell.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub SetTag( _
   ByVal row As Integer, _
   ByVal position As MedicalViewerTagAlignment, _
   ByVal type As MedicalViewerTagType, _
   ByVal userText As String _
) 
Visual Basic (Usage)Copy Code
Dim instance As MedicalViewerCell
Dim row As Integer
Dim position As MedicalViewerTagAlignment
Dim type As MedicalViewerTagType
Dim userText As String
 
instance.SetTag(row, position, type, userText)
C# 
public void SetTag( 
   int row,
   MedicalViewerTagAlignment position,
   MedicalViewerTagType type,
   string userText
)
C++/CLI 
public:
void SetTag( 
   int row,
   MedicalViewerTagAlignment position,
   MedicalViewerTagType type,
   String^ userText
) 

Parameters

row
The line at which the overlay text will be drawn.
position
The row parameter alignment.
type
The type of tag.
userText
The user text.

Example

For an example, refer to _ctor

Remarks

  • The tag placement works by dividing the cell into rows (almost 30 rows) and 8 different alignments. For example:
    • If row is 3 and position is TopLeft, then the text will be placed at the 3rd row from the top of the cell, on the left side.
    • If row is 3 and position is BottomRight, then the text will be placed at the 3rd row from the bottom of the cell, on the right side.
    • If position is TopCenter, BottomCenter, CenterLeft, or CenterRight; then row will be not be used.
    • For more information, refer to Working With Annotations.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Leadtools.MedicalViewer requires a Medical Imaging license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features