51 references to StringFormatFlags
PresentationUI (1)
MS\Internal\Documents\SignatureSummaryDialog.cs (1)
628
stringFormat.FormatFlags =
StringFormatFlags
.DirectionRightToLeft;
System.Drawing (1)
System.Drawing.cs (1)
151
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.
StringFormatFlags
))]
System.Drawing.Common (3)
Special\NotSupported.cs (3)
1133
public StringFormat(System.Drawing.
StringFormatFlags
options) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1134
public StringFormat(System.Drawing.
StringFormatFlags
options, int language) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1138
public System.Drawing.
StringFormatFlags
FormatFlags { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } }
System.Drawing.Common.Tests (35)
mono\System.Drawing\GraphicsTests.cs (5)
1688
string_format.FormatFlags =
StringFormatFlags
.DirectionVertical;
1752
string_format.FormatFlags =
StringFormatFlags
.DirectionVertical;
1900
string_format.FormatFlags =
StringFormatFlags
.NoClip;
1923
string_format.FormatFlags =
StringFormatFlags
.NoClip;
2094
fmt.FormatFlags =
StringFormatFlags
.NoWrap;
mono\System.Imaging\MetafileTest.cs (1)
313
FormatFlags =
StringFormatFlags
.NoClip
System\Drawing\StringFormatTests.cs (29)
20
Assert.Equal((
StringFormatFlags
)0, format.FormatFlags);
27
[InlineData(
StringFormatFlags
.DirectionRightToLeft |
StringFormatFlags
.DirectionVertical)]
28
[InlineData((
StringFormatFlags
)(-1))]
29
public void Ctor_Options(
StringFormatFlags
options)
42
[InlineData(
StringFormatFlags
.DirectionRightToLeft |
StringFormatFlags
.DirectionVertical, RandomLanguageCode)]
43
[InlineData(
StringFormatFlags
.NoClip, EnglishLanguageCode)]
44
[InlineData((
StringFormatFlags
)(-1), -1)]
45
public void Ctor_Options_Language(
StringFormatFlags
options, int language)
60
using StringFormat original = new(
StringFormatFlags
.NoClip, EnglishLanguageCode);
65
Assert.Equal(
StringFormatFlags
.NoClip, format.FormatFlags);
71
original.FormatFlags =
StringFormatFlags
.NoFontFallback;
72
Assert.Equal(
StringFormatFlags
.NoClip, format.FormatFlags);
101
using StringFormat original = new(
StringFormatFlags
.NoClip, EnglishLanguageCode);
106
Assert.Equal(
StringFormatFlags
.NoClip, format.FormatFlags);
112
original.FormatFlags =
StringFormatFlags
.NoFontFallback;
113
Assert.Equal(
StringFormatFlags
.NoClip, format.FormatFlags);
285
[InlineData(
StringFormatFlags
.DirectionRightToLeft)]
286
[InlineData((
StringFormatFlags
)int.MinValue)]
287
[InlineData((
StringFormatFlags
)int.MaxValue)]
288
public void FormatFlags_Set_GetReturnsExpected(
StringFormatFlags
formatFlags)
301
AssertExtensions.Throws<ArgumentException>(null, () => format.FormatFlags =
StringFormatFlags
.NoClip);
398
Assert.Equal((
StringFormatFlags
)0, format.FormatFlags);
413
Assert.Equal(
StringFormatFlags
.FitBlackBox |
StringFormatFlags
.LineLimit |
StringFormatFlags
.NoClip, format.FormatFlags);
422
using StringFormat format = new(
StringFormatFlags
.DirectionVertical);
429
StringFormat format = new(
StringFormatFlags
.DirectionVertical);
System.Windows.Forms (9)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (2)
51
public
StringFormatFlags
GdiPlusFormatFlags { get; set; }
85
format.FormatFlags |=
StringFormatFlags
.NoWrap;
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
483
format.FormatFlags |=
StringFormatFlags
.DirectionRightToLeft;
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (2)
669
format.FormatFlags |=
StringFormatFlags
.DirectionRightToLeft;
674
format.FormatFlags |=
StringFormatFlags
.NoWrap;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1600
StringFormat stringFormat = new(
StringFormatFlags
.NoWrap)
System\Windows\Forms\Rendering\ControlPaint.cs (3)
2553
stringFormat.FormatFlags |=
StringFormatFlags
.DirectionRightToLeft;
2559
stringFormat.FormatFlags |=
StringFormatFlags
.LineLimit;
2577
stringFormat.FormatFlags |=
StringFormatFlags
.MeasureTrailingSpaces;
System.Windows.Forms.Design (2)
System\Drawing\Design\FontNameEditor.cs (2)
74
StringFormat format = new(
StringFormatFlags
.NoWrap |
StringFormatFlags
.NoFontFallback)