예제 #1
0
		internal static void SetMargin(ITextView textView, ICustomLineNumberMargin margin) {
			if (textView == null)
				throw new ArgumentNullException(nameof(textView));
			if (margin == null)
				throw new ArgumentNullException(nameof(margin));
			textView.Properties.AddProperty(Key, margin);
		}
예제 #2
0
 internal static void SetMargin(ITextView textView, ICustomLineNumberMargin margin)
 {
     if (textView is null)
     {
         throw new ArgumentNullException(nameof(textView));
     }
     if (margin is null)
     {
         throw new ArgumentNullException(nameof(margin));
     }
     textView.Properties.AddProperty(Key, margin);
 }