Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.50 KB | None | 0 0
  1.         /// <summary>
  2.         /// Gets or sets the maximum number of lines that can be displayed.
  3.         /// </summary>
  4.         [Category("Appearance")]
  5.         [Description("Gets or sets the maximum number of lines that can be displayed.")]
  6.         [DefaultValue(ShellBox.DefaultMaximumLines)]
  7.         private int MaximumLines
  8.         {
  9.             get { return this._maximumLines; }
  10.             set
  11.             {
  12.                 if(value < 0)
  13.                     throw new ArgumentException("Value must not be negative.");
  14.  
  15.                 this._maximumLines = value;
  16.                 this.UpdateLineCount();
  17.             }
  18.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement