SetTag(int,MedicalViewerTagAlignment,MedicalViewerTagType,string,Font,Color) Method

Summary

Adds a tag (overlay text) to the cell.

Syntax
C#
VB
C++
public void SetTag( 
   int row, 
   MedicalViewerTagAlignment alignment, 
   MedicalViewerTagType type, 
   string userText, 
   Font font, 
   Color fontColor 
) 
  
Public Overloads Sub SetTag( _ 
   ByVal row As Integer, _ 
   ByVal alignment As MedicalViewerTagAlignment, _ 
   ByVal type As MedicalViewerTagType, _ 
   ByVal userText As String, _ 
   ByVal font As Font, _ 
   ByVal fontColor As Color _ 
)  
            public: 
void SetTag(  
   int row, 
   MedicalViewerTagAlignment alignment, 
   MedicalViewerTagType type, 
   String^ userText, 
   Font^ font, 
   Color fontColor 
)  

Parameters

row
The line at which the overlay text will be drawn.

alignment
The row parameter alignment.

type
The type of the tag.

userText
The user text.

font
The font that will be used to draw the tag over the cell.

fontColor
The color of the text.

Remarks

The tag placement works by dividing the cell into rows (almost 30 rows) and 8 different alignments. For example:

  • If row is set to 3 and alignment is set to TopLeft, then the text will be placed at the 3rd row from the top of the cell, on the left side.
  • If row is set to 3 and alignment to BottomRight, then the text will be placed at the 3rd row from the bottom of the cell, on the right side.
  • If alignment is set to TopCenter, BottomCenter, CenterLeft, CenterRight, then row will not be used.

  • For more information, refer to Working With Annotations.

Example

For an example, refer to Leadtools.MedicalViewer.MedicalViewer().

Requirements

Target Platforms

Help Version 20.0.2020.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.MedicalViewer Assembly