Example





In This Topic
GdPicture14 Namespace / GdViewer Class / AnnotationSelectionLineColor Property

AnnotationSelectionLineColor Property (GdViewer)

In This Topic
Gets or sets the line color of the line that is used to draw the selection rectangle when selecting GdPicture XMP annotations. This value is common for all annotations.

The annotation selection displays as the rectangle, which borders the annotation, so that the line of this rectangle respects the defined annotation selection line color.

Syntax
'Declaration
 
Public Property AnnotationSelectionLineColor As Color
public Color AnnotationSelectionLineColor {get; set;}
public read-write property AnnotationSelectionLineColor: Color; 
public function get,set AnnotationSelectionLineColor : Color
public: __property Color get_AnnotationSelectionLineColor();
public: __property void set_AnnotationSelectionLineColor( 
   Color value
);
public:
property Color AnnotationSelectionLineColor {
   Color get();
   void set (    Color value);
}

Property Value

The default value is Color.Red, that is Color.FromArgb(255, 255, 0, 0).
Example
How to change the line color of the selection rectangle and its other properties as well.
'We assume that the GdViewer1 control has been properly integrated.
GdViewer1.AnnotationSelectionLineColor = Color.FromArgb(255, 0, 0, 255)
GdViewer1.AnnotationResizeRotateHandlesColor = Color.FromArgb(255, 255, 127, 80)
GdViewer1.AnnotationResizeRotateHandlesScale = 0.5F
//We assume that the GdViewer1 control has been properly integrated.
GdViewer1.AnnotationSelectionLineColor = Color.FromArgb(255, 0, 0, 255);
GdViewer1.AnnotationResizeRotateHandlesColor = Color.FromArgb(255, 255, 127, 80);
GdViewer1.AnnotationResizeRotateHandlesScale = 0.5f;
See Also