**** Merged from MCS ****
[mono-project.git] / mcs / class / System.Windows.Forms / Gtk / VScrollBar.cs
blobbbf50c3bdff9ae21dcd60889fb9f651badfd5e6c
1 //
2 // System.Windows.Forms.VScrollBar.cs
3 //
4 // Author:
5 // Philip Van Hoof (me@freax.org)
6 // (C) 2002 Ximian, Inc. http://www.ximian.com
7 //
9 using System.Drawing;
11 namespace System.Windows.Forms {
13 public class VScrollBar : ScrollBar {
15 private RightToLeft rightToLeft;
16 // --- Properties ---
19 public override RightToLeft RightToLeft {
21 get {
22 return rightToLeft;
24 set {
25 rightToLeft = value;
26 //FixMe: invalidate to force redraw.
27 //Invalidate();
31 internal override Gtk.Widget CreateWidget () {
32 return new Gtk.VScrollbar ( adj );
35 // --- Constructor ---
36 public VScrollBar() : base (){
37 rightToLeft = RightToLeft.Inherit;
39 protected override Size DefaultSize{
40 get{ return new System.Drawing.Size (17,80); }
42 public override string ToString(){
43 String ret = String.Format (
44 "System.Windows.Forms.VScrollBar, " +
45 "Minimum: {0}, Maximum: {1}, Value: {2}",
46 this.Minimum,
47 this.Maximum,
48 this.Value);
49 return ret;