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

Annotationオブジェクトの高さを取得または設定します。
構文
'宣言
 
Public Property Height As Single
public float Height {get; set;}

プロパティ値

Annotationオブジェクトの高さです。
解説
注釈の高さを設定する前に、ページに注釈を追加する必要があります。
使用例
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.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.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-2015 GrapeCity inc. All rights reserved.