{"id":25991,"date":"2020-02-15T10:07:33","date_gmt":"2020-02-15T09:07:33","guid":{"rendered":"http:\/\/help.qualiware.it\/qw-help\/?p=25991"},"modified":"2020-02-15T10:07:33","modified_gmt":"2020-02-15T09:07:33","slug":"aggiunta-di-un-range-colorato-ad-un-tachimetro-in-un-report","status":"publish","type":"post","link":"https:\/\/help.qualiware.it\/qw-help\/aggiunta-di-un-range-colorato-ad-un-tachimetro-in-un-report\/","title":{"rendered":"Aggiunta di un range colorato ad un tachimetro in un report"},"content":{"rendered":"<p>Il seguente evento collegato ad un tachimetro consente di creare range colorati, come nella figura seguente:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"293\" height=\"171\" class=\"wp-image-25992 size-full aligncenter\" src=\"http:\/\/help.qualiware.it\/qw-help\/wp-content\/uploads\/Pasted-into-Aggiunta-di-un-range-colorato-ad-un-tachimetro-in-un-report.png\"><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"csharp\">  Private Sub gauge1_BeforePrint(ByVal sender As Object, ByVal e As System.Drawing.Printing.PrintEventArgs)\r\n\t' Aggiunta dei range colorati\r\n      dim gauge as XRGauge = CType(sender, XRGauge)\r\n\tDim gaugeControl As DevExpress.XtraGauges.Core.Customization.DashboardGauge = gauge.Gauge\r\n\r\n\tdim scale As DevExpress.XtraGauges.Core.Model.ArcScale=gaugeControl.Elements(0)\r\n\r\n\tscale.BeginUpdate()\r\n\r\n      Dim range1 As DevExpress.XtraGauges.Core.Model.ArcScaleRange = New DevExpress.XtraGauges.Core.Model.ArcScaleRange()\r\n      range1.AppearanceRange.ContentBrush = New DevExpress.XtraGauges.Core.Drawing.SolidBrushObject(Color.Red)\r\n      range1.StartValue = 0\r\n      range1.EndValue = 30\r\n      Dim range2 As DevExpress.XtraGauges.Core.Model.ArcScaleRange = New DevExpress.XtraGauges.Core.Model.ArcScaleRange()\r\n      range2.AppearanceRange.ContentBrush = New DevExpress.XtraGauges.Core.Drawing.SolidBrushObject(Color.Yellow)\r\n      range2.StartValue = 30\r\n      range2.EndValue = 60\r\n      Dim range3 As DevExpress.XtraGauges.Core.Model.ArcScaleRange = New DevExpress.XtraGauges.Core.Model.ArcScaleRange()\r\n      range3.AppearanceRange.ContentBrush = New DevExpress.XtraGauges.Core.Drawing.SolidBrushObject(Color.Green)\r\n      range3.StartValue = 60\r\n      range3.EndValue = 100\r\n      scale.Ranges.AddRange(New DevExpress.XtraGauges.Core.Model.IRange() {range1, range2, range3})\r\n\r\n      scale.EndUpdate()\r\nEnd Sub\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Il seguente evento collegato ad un tachimetro consente di creare range colorati, come nella figura seguente: Private Sub gauge1_BeforePrint(ByVal sender As Object, ByVal e As System.Drawing.Printing.PrintEventArgs) &#8216; Aggiunta dei range colorati dim gauge as XRGauge = CType(sender, XRGauge) Dim gaugeControl As DevExpress.XtraGauges.Core.Customization.DashboardGauge = gauge.Gauge dim scale As DevExpress.XtraGauges.Core.Model.ArcScale=gaugeControl.Elements(0) scale.BeginUpdate() Dim range1 As DevExpress.XtraGauges.Core.Model.ArcScaleRange = New&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"ngg_post_thumbnail":0,"footnotes":""},"categories":[65],"tags":[87],"acf":[],"_links":{"self":[{"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/posts\/25991"}],"collection":[{"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/comments?post=25991"}],"version-history":[{"count":0,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/posts\/25991\/revisions"}],"wp:attachment":[{"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/media?parent=25991"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/categories?post=25991"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/tags?post=25991"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}