A cross-platform UI framework for .NET
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

29 lines
1005 B

// -----------------------------------------------------------------------
// <copyright file="TextHitTestResult.cs" company="Steven Kirk">
// Copyright 2015 MIT Licence. See licence.md for more information.
// </copyright>
// -----------------------------------------------------------------------
namespace Perspex.Media
{
/// <summary>
/// Holds a hit test result from a <see cref="FormattedText"/>.
/// </summary>
public class TextHitTestResult
{
/// <summary>
/// Gets or sets a value indicating whether the point is inside the bounds of the text.
/// </summary>
public bool IsInside { get; set; }
/// <summary>
/// Gets the index of the hit character in the text.
/// </summary>
public int TextPosition { get; set; }
/// <summary>
/// Gets a value indicating whether the hit is on the trailing edge of the character.
/// </summary>
public bool IsTrailing { get; set; }
}
}