Xwt.Drawing.Font.Equals C# (CSharp) Method

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool
		public override bool Equals (object obj)
		{
			var other = obj as Font;
			if (other == null)
				return false;

			return Family == other.Family && Style == other.Style && Weight == other.Weight && Stretch == other.Stretch && Size == other.Size;
		}

Usage Example

Ejemplo n.º 1
0
 public void SetFont(Font font)
 {
     if (!font.Equals(this.Font))
     {
         this.Font = font;
         if (formattedText != null)
         {
             ApplyFont();
         }
     }
 }
All Usage Examples Of Xwt.Drawing.Font::Equals