GrapeCity ActiveReports for .NET 14.0J
AnnotationLine クラス
メンバ  使用例 

GrapeCity.ActiveReports.Document アセンブリ > GrapeCity.ActiveReports.Document.Section.Annotations 名前空間 : AnnotationLine クラス
AnnotationLineオブジェクト(テキスト領域付きの線形)を描画します。
オブジェクト モデル
AnnotationLine クラス
シンタックス
'宣言
 
Public NotInheritable Class AnnotationLine 
   Inherits Annotation
public sealed class AnnotationLine : Annotation 
使用例
using GrapeCity.ActiveReports.Document.Section.Annotations;

private void AddAnnotations()
{
    rptAnno rpt = new rptAnno();
    rpt.Run();
    this.viewer1.Document = rpt.Document;

    AnnotationLine line = new AnnotationLine();
    line.ArrowCapWidth = 4.5f;
    line.ArrowCapHeight = 4.5f;
    line.DashStyle = System.Drawing.Drawing2D.DashStyle.DashDotDot;
    line.DashCap = System.Drawing.Drawing2D.DashCap.Round;
    line.ShowArrowCaps = AnnotationLine.ShowArrowCap.RightOnly;
    line.FillArrowCaps = true;
    line.LineColor = Color.Red;
    line.LineWidth = 1;
    line.LineLocation = AnnotationLine.LinePlacement.Bottom;
    line.Text = "Please review.";
    line.TextColor = Color.Blue;
    line.TextAlignment = System.Drawing.StringAlignment.Center;
            
    line.Attach(4, 4);
    this.viewer1.Document.Pages[0].Annotations.Add(line);

    line.Height = 0.50f;
    line.Width = 1.5f;
}
Imports GrapeCity.ActiveReports.Document.Section.Annotations

Dim rpt As New rptAnnotations
Private Sub AddAnnotations()
   rpt.Run()
   Me.Viewer1.Document = rpt.Document

   Dim line As New AnnotationLine()
   line.ArrowCapWidth = 4.5
   line.ArrowCapHeight = 4.5
   line.DashStyle = System.Drawing.Drawing2D.DashStyle.DashDotDot
   line.DashCap = System.Drawing.Drawing2D.DashCap.Round
   line.ShowArrowCaps = AnnotationLine.ShowArrowCap.RightOnly
   line.FillArrowCaps = True
   line.LineColor = Color.Red
   line.LineWidth = 1
   line.LineLocation = AnnotationLine.LinePlacement.Bottom
   line.Text = "Please review."
   line.TextColor = Color.Blue
   line.TextAlignment = System.Drawing.StringAlignment.Center
            
   line.Attach(4, 4)
   Me.Viewer1.Document.Pages(0).Annotations.Add(line)

   line.Height = 0.50
   line.Width = 1.5
End Sub
継承階層

System.Object
   System.MarshalByRefObject
      System.ComponentModel.Component
         GrapeCity.ActiveReports.Document.Section.Annotations.Annotation
            GrapeCity.ActiveReports.Document.Section.Annotations.AnnotationLine

参照

AnnotationLine メンバ
GrapeCity.ActiveReports.Document.Section.Annotations 名前空間