Browse Source

update documentation for CreateFormattedText method.

pull/1544/head
Dan Walmsley 8 years ago
parent
commit
515e180cdb
  1. 6
      src/Avalonia.Controls/Presenters/TextPresenter.cs
  2. 1
      src/Avalonia.Controls/Primitives/AccessText.cs

6
src/Avalonia.Controls/Presenters/TextPresenter.cs

@ -211,6 +211,12 @@ namespace Avalonia.Controls.Presenters
}
}
/// <summary>
/// Creates the <see cref="FormattedText"/> used to render the text.
/// </summary>
/// <param name="constraint">The constraint of the text.</param>
/// <param name="text">The text to generated the <see cref="FormattedText"/> for.</param>
/// <returns>A <see cref="FormattedText"/> object.</returns>
protected override FormattedText CreateFormattedText(Size constraint, string text)
{
FormattedText result = null;

1
src/Avalonia.Controls/Primitives/AccessText.cs

@ -82,6 +82,7 @@ namespace Avalonia.Controls.Primitives
/// Creates the <see cref="FormattedText"/> used to render the text.
/// </summary>
/// <param name="constraint">The constraint of the text.</param>
/// <param name="text">The text to generated the <see cref="FormattedText"/> for.</param>
/// <returns>A <see cref="FormattedText"/> object.</returns>
protected override FormattedText CreateFormattedText(Size constraint, string text)
{

Loading…
Cancel
Save