UIFont.References C# (CSharp) Méthode

References() private méthode

Helper function that determines whether the font uses the specified one, taking replacements into account.
private References ( UIFont, font ) : bool
font UIFont,
Résultat bool
    bool References(UIFont font)
    {
        if (font == null) return false;
        if (font == this) return true;
        return (mReplacement != null) ? mReplacement.References(font) : false;
    }

Usage Example

Exemple #1
0
    /// <summary>
    /// Helper function that determines whether the two atlases are related.
    /// </summary>

    static public bool CheckIfRelated(UIFont a, UIFont b)
    {
        if (a == null || b == null)
        {
            return(false);
        }
        return(a == b || a.References(b) || b.References(a));
    }
All Usage Examples Of UIFont::References