MultilineTextDiff/VerySimpleRtfBuilder.cs
/// <summary>
/// Get ID of colour for given colour.
/// </summary>
/// <param name="colour">Colour to be found in the colour palette.</param>
/// <returns>
/// ID of the colour in colour palette.
/// </returns>
Get ID of colour for given colour.
Get ID of colour for given colour .
private int GetColourId(Color colour)
    {
      if (colour.IsEmpty)
      {
        return (0);
      }
      for (int position = 0; position < this.coloursList.Count; position++)
      {
        if (ColorEquals(this.coloursList[position], colour))
        {
          return (position + 1);
        }
      }
      this.coloursList.Add(colour);
      return (this.coloursList.Count);
    }
private int GetColourId ( Color colour ) { if ( colour . IsEmpty ) { return ( 0 ) ; } for ( int position = 0 ; position < this . coloursList . Count ; position ++ ) { if ( ColorEquals ( this . coloursList [ position ] , colour ) ) { return ( position + 1 ) ; } } this . coloursList . Add ( colour ) ; return ( this . coloursList . Count ) ; }
Get ID of colour for given colour.
Get ID of colour for given colour .
ID of the colour in colour palette.
ID of the colour in colour palette .
colour
Color
Colour to be found in the colour palette.
Colour to be found in the colour palette .