Change Orientation
3 Sep 2020 / 1 minute to read
SFLinearGauge
supports horizontal and vertical orientations. By default, SFLinearGauge
is rendered with horizontal orientation. You can the change the orientation by using the Orientation
property.
SFLinearGauge linearGauge = new SFLinearGauge();
linearGauge.BackgroundColor = UIColor.White;
linearGauge.Orientation = SFLinearGaugeOrientation.SFLinearGaugeOrientationVertical;
SFLinearScale linearScale = new SFLinearScale();
linearScale.ScalePosition = SFLinearGaugeScalePosition.SFLinearGaugeScalePositionBackward;
linearScale.Interval = 10;
linearScale.ScaleBarLength = 350;
linearScale.ScaleBarColor = UIColor.FromRGB(224, 224, 224);
linearScale.LabelColor = UIColor.FromRGB(66, 66, 66);
linearScale.MajorTickSettings.Length = 12;
linearScale.MinorTickSettings.Length = 5;
linearGauge.Scales.Add(linearScale);
this.View.AddSubview(linearGauge);
Was this page helpful?
Yes
No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page