PowerTools ActiveReports for .NET 11.0J
Alpha プロパティ (Annotation)
使用例 

構文
'宣言
 
Public Overridable Property Alpha As Integer
public virtual int Alpha {get; set;}
使用例
using GrapeCity.ActiveReports.Document.Section.Annotations; 
 
rptAnnotations rpt = new rptAnnotations(); 
private void AddAnnotations() 
{ 
   //レポートを実行します。 
   rpt.Run(); 
    
   //ビューワに割り当てます。 
   this.viewer1.Document = rpt.Document; 
    
   //注釈を作成し、プロパティ値を割り当てます。
   AnnotationCircle circle = new AnnotationCircle(); 
   circle.Color = System.Drawing.Color.GreenYellow; 
   circle.Border.Color = System.Drawing.Color.Chartreuse;
   circle.Alpha = 150; 
   
   //注釈を追加します。 
   circle.Attach(1,1); //位置 
   this.viewer1.Document.Pages[0].Annotations.Add(circle); 
 
   //サイズを設定します。 
   circle.Height = 0.25f; 
   circle.Width = 0.50f; 
 
   //注釈をRDFファイルに保存します。
   rpt.Document.Save("C:\\MyAnnotations.rdf"); 
}
Private rpt As New rptAnnotations()
Private Sub AddAnnotations()
'レポートを実行します。 
rpt.Run()

'ビューワに割り当てます。 
Me.viewer1.Document = rpt.Document

'注釈を作成し、プロパティ値を割り当てます。 
Dim circle As New AnnotationCircle()
circle.Color = System.Drawing.Color.GreenYellow
circle.Border.Color = System.Drawing.Color.Chartreuse
circle.Alpha = 150

'注釈を追加します。 
circle.Attach(1, 1)
'位置 
Me.viewer1.Document.Pages(0).Annotations.Add(circle)

'サイズを設定します。 
circle.Height = 0.25F
circle.Width = 0.5F

'注釈をRDFファイルに保存します。 
rpt.Document.Save("C:\MyAnnotations.rdf")

End Sub
参照

関連項目

Annotation クラス
Annotation メンバ

 

 


©2003-2017 GrapeCity inc. All rights reserved.