Browse Source

update documentation for CreateFormattedText method.

Dan Walmsley 7 năm trước cách đây
mục cha
commit
515e180cdb

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