LineFormat.Equals

LineFormat.Equals method

Determines whether this instance has the same value as another specified LineFormat object.

public override bool Equals(object obj)
ParameterTypeDescription
objObjectThe LineFormat object to compare with this instance.

Return Value

true if the value of the obj parameter is the same as the value of this instance; otherwise, false. If obj is null, this method returns false.

Examples


[C#]
//You have to make sure that the index value in this line of code exists
LineFormat obj = workbook.Worksheets[0].Shapes[0].Line;
if (lineFmt.Equals(obj))
{
    //do what you want
}

See Also