Ejemplo n.º 1
0
 public Boolean MatchesStyleRef(ref TextLayoutToken token)
 {
     return
         this.color == token.color &&
         this.fontFace == token.fontFace &&
         this.icon.GetValueOrDefault().Equals(token.icon.GetValueOrDefault()) &&
         this.glyphShader == token.glyphShader;
 }
Ejemplo n.º 2
0
 public Boolean MatchesStyleRef(ref TextLayoutToken token)
 {
     return
         (this.color == token.color &&
          this.fontFace == token.fontFace &&
          this.icon.GetValueOrDefault().Equals(token.icon.GetValueOrDefault()) &&
          this.glyphShader == token.glyphShader);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Gets a value indicating whether this token's style matches another token's style.
 /// </summary>
 /// <param name="token">The <see cref="TextLayoutToken"/> to compare against this token.</param>
 /// <returns><c>true</c> if the tokens have matching styles; otherwise, <c>false</c>.</returns>
 public Boolean MatchesStyle(TextLayoutToken token)
 {
     return MatchesStyleRef(ref token);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Gets a value indicating whether this token's style matches another token's style.
 /// </summary>
 /// <param name="token">The <see cref="TextLayoutToken"/> to compare against this token.</param>
 /// <returns><see langword="true"/> if the tokens have matching styles; otherwise, <see langword="false"/>.</returns>
 public Boolean MatchesStyle(TextLayoutToken token)
 {
     return(MatchesStyleRef(ref token));
 }