Skip to content

Commit bef0904

Browse files
HidePrefix and PrefixOnly are still effective (#3868)
* HidePrefix and PrefixOnly are still effective * corrections for 'ModifyString` flag * added a distinction between effects of these flags on DrawText and MeasureText * Update xml/System.Windows.Forms/TextFormatFlags.xml Co-Authored-By: Maira Wenzel <[email protected]> * Update xml/System.Windows.Forms/TextFormatFlags.xml Co-Authored-By: Maira Wenzel <[email protected]> * Update xml/System.Windows.Forms/TextFormatFlags.xml Co-Authored-By: Maira Wenzel <[email protected]> * Update xml/System.Windows.Forms/TextFormatFlags.xml Co-Authored-By: Maira Wenzel <[email protected]> * Update xml/System.Windows.Forms/TextFormatFlags.xml Co-Authored-By: Maira Wenzel <[email protected]> * add missing space Co-authored-by: Maira Wenzel <[email protected]>
1 parent b517307 commit bef0904

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

xml/System.Windows.Forms/TextFormatFlags.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
</ReturnValue>
100100
<MemberValue>32768</MemberValue>
101101
<Docs>
102-
<summary>Removes the end of trimmed lines, and replaces them with an ellipsis.</summary>
102+
<summary>Removes the end of trimmed lines, and replaces them with an ellipsis. When used to draw text by <c>TextRenderer</c>, the string is not modified unless the <see cref="F:System.Windows.Forms.TextFormatFlags.ModifyString" /> flag is specified. Compare with <see cref="F:System.Windows.Forms.TextFormatFlags.PathEllipsis" /> and <see cref="F:System.Windows.Forms.TextFormatFlags.WordEllipsis" />.</summary>
103103
</Docs>
104104
</Member>
105105
<Member MemberName="ExpandTabs">
@@ -183,7 +183,7 @@
183183
</ReturnValue>
184184
<MemberValue>1048576</MemberValue>
185185
<Docs>
186-
<summary>A legacy value that has no effect. It ignored the ampersand (&amp;) prefix character in the text, so that the letter that followed was not underlined, but other mnemonic-prefix characters were still processed.</summary>
186+
<summary>Ignores the ampersand (&amp;) prefix character in the text, so that the letter that follows won't be underlined, but other mnemonic-prefix characters are still processed.</summary>
187187
</Docs>
188188
</Member>
189189
<Member MemberName="HorizontalCenter">
@@ -288,7 +288,7 @@
288288
</ReturnValue>
289289
<MemberValue>65536</MemberValue>
290290
<Docs>
291-
<summary>Has no effect on the drawn text.</summary>
291+
<summary>Has no effect on the drawn text or text measurements. When used to draw text by <c>TextRenderer</c>, modifies the specified string parameter to match the displayed text if ellipsis are shown. This value has no effect unless <see cref="F:System.Windows.Forms.TextFormatFlags.EndEllipsis" /> or <see cref="F:System.Windows.Forms.TextFormatFlags.PathEllipsis" /> is specified.</summary>
292292
</Docs>
293293
</Member>
294294
<Member MemberName="NoClipping">
@@ -393,7 +393,7 @@
393393
</ReturnValue>
394394
<MemberValue>16384</MemberValue>
395395
<Docs>
396-
<summary>Removes the center of trimmed lines and replaces it with an ellipsis.</summary>
396+
<summary>Removes the center of trimmed lines and replaces it with an ellipsis. When used to draw text by <c>TextRenderer</c>, the string is not modified unless the <see cref="F:System.Windows.Forms.TextFormatFlags.ModifyString" /> flag is specified. Compare with <see cref="F:System.Windows.Forms.TextFormatFlags.EndEllipsis" /> and <see cref="F:System.Windows.Forms.TextFormatFlags.WordEllipsis" />.</summary>
397397
</Docs>
398398
</Member>
399399
<Member MemberName="PrefixOnly">
@@ -414,7 +414,7 @@
414414
</ReturnValue>
415415
<MemberValue>2097152</MemberValue>
416416
<Docs>
417-
<summary>A legacy value that has no effect. It drew only an underline at the position of the character following the ampersand (&amp;) prefix character, and did not draw any other characters in the string.</summary>
417+
<summary>Draws only an underline at the position of the character following the ampersand (&amp;) prefix character and doesn't draw any other characters in the string.</summary>
418418
</Docs>
419419
</Member>
420420
<Member MemberName="PreserveGraphicsClipping">
@@ -624,7 +624,7 @@
624624
</ReturnValue>
625625
<MemberValue>262144</MemberValue>
626626
<Docs>
627-
<summary>Trims the line to the nearest word and an ellipsis is placed at the end of a trimmed line.</summary>
627+
<summary>Trims the line to the nearest word and an ellipsis is placed at the end of a trimmed line. Compare with <see cref="F:System.Windows.Forms.TextFormatFlags.EndEllipsis" /> and <see cref="F:System.Windows.Forms.TextFormatFlags.PathEllipsis" />.</summary>
628628
</Docs>
629629
</Member>
630630
</Members>

0 commit comments

Comments
 (0)