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