瀏覽代碼

update documentation for CreateFormattedText method.

Dan Walmsley 7 年之前
父節點
當前提交
515e180cdb
共有 2 個文件被更改,包括 7 次插入0 次删除
  1. 6 0
      src/Avalonia.Controls/Presenters/TextPresenter.cs
  2. 1 0
      src/Avalonia.Controls/Primitives/AccessText.cs

+ 6 - 0
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 - 0
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)
         {