Public Property Width() As Integer Get Return width End Get Set If value > 0 Then width = value Else Throw New ArgumentOutOfRangeException("Width must be 1 or higher") End If End Set End Property>>To add properties, you do this in code inside of the class you want to add them to.
>>public int Width >>{ >> get { return width; } >> set >> { >> if (value > 0) >> width = value; >> else >> throw new ArgumentOutOfRangeException("Width must be 1 or higher"); >> } >>} >>>