DevExpress での一覧、帳票等のレポート(ASPxWebDocumentViewer)の六角形(シェイプ)設定のサンプルです。
現状の画面デザインはこのようになっています。
<レポートの六角形(シェイプ)設定>
「XrShape2」オブジェクトを選択します。
「XrShape2」のプロパティから「Me.XrShape2.Shape = ShapePolygon1」を設定します。
↓
【サンプルプログラム(VB.Net)】
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
【サンプルプログラム(VB.Net)】 ' 'XrShape2 ' Me.XrShape2.FillColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer)) Me.XrShape2.ForeColor = System.Drawing.Color.Blue Me.XrShape2.LineStyle = System.Drawing.Drawing2D.DashStyle.DashDot Me.XrShape2.LineWidth = 3 Me.XrShape2.LocationFloat = New DevExpress.Utils.PointFloat(629.0416!, 16.00001!) Me.XrShape2.Name = "XrShape2" ShapePolygon1.NumberOfSides = 6 Me.XrShape2.Shape = ShapePolygon1 Me.XrShape2.SizeF = New System.Drawing.SizeF(80.0!, 80.0!) Me.XrShape2.StylePriority.UseForeColor = False |
それでは、実行して動作確認を行います。
↓
無事、一覧、帳票等のレポート(ASPxWebDocumentViewer)の六角形(シェイプ)設定が出来ました。