ActiveReports 6 Online Help
Alpha Property (Annotation)
Example 

Gets or sets the opacity of the Annotation objcet.
Syntax
'Declaration
 
Public Overridable Property Alpha As Integer
public virtual int Alpha {get; set;}
Remarks
Acceptable values are 0 to 255.
Example
using DataDynamics.ActiveReports.Viewer.Annotations; 
 
rptAnnotations rpt = new rptAnnotations(); 
private void AddAnnotations() 
{ 
   //Run the report first 
   rpt.Run(); 
    
   //Assign the viewer 
   this.viewer1.Document = rpt.Document; 
    
   //Create an annotation and assign property values 
   AnnotationCircle circle = new AnnotationCircle(); 
   circle.Color = System.Drawing.Color.GreenYellow; 
   circle.Border.Color = System.Drawing.Color.Chartreuse;
   circle.Alpha = 150; 
   
   //Add the annotation 
   circle.Attach(1,1); //screen location 
   this.viewer1.Document.Pages[0].Annotations.Add(circle); 
 
   //Set the size properties. The annotation must be added to the page first. 
   circle.Height = 0.25f; 
   circle.Width = 0.50f; 
 
   //Save annotations to an RDF file 
   rpt.Document.Save("C:\\MyAnnotations.rdf"); 
}
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Annotation Class
Annotation Members

Send Feedback