本文整理匯總了C#中System.Windows.Ink.DrawingAttributes.Inequality操作符的典型用法代碼示例。如果您正苦於以下問題:C# DrawingAttributes.Inequality操作符的具體用法?C# DrawingAttributes.Inequality怎麽用?C# DrawingAttributes.Inequality使用的例子?那麽, 這裏精選的操作符代碼示例或許可以為您提供幫助。您也可以進一步了解該操作符所在類System.Windows.Ink.DrawingAttributes
的用法示例。
在下文中一共展示了DrawingAttributes.Inequality操作符的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: DrawingAttributes
DrawingAttributes attributes1 = new DrawingAttributes();
attributes1.Color = Colors.Blue;
attributes1.StylusTip = StylusTip.Rectangle;
attributes1.Height = 5;
attributes1.Width = 5;
DrawingAttributes attributes2 = new DrawingAttributes();
attributes2.Color = Colors.Blue;
attributes2.StylusTip = StylusTip.Rectangle;
attributes2.Height = 5;
attributes2.Width = 5;
示例2:
if (attributes1 != attributes2)
{
MessageBox.Show("The DrawingAttributes are not equal");
}
else
{
MessageBox.Show("The DrawingAttributes are equal");
}