58 references to TextImageRelation
System.Windows.Forms (58)
winforms\Managed\System\WinForms\ButtonBase.cs (5)
39
private
TextImageRelation
textImageRelation =
TextImageRelation
.Overlay;
680
[DefaultValue(
TextImageRelation
.Overlay),
684
public
TextImageRelation
TextImageRelation {
690
throw new InvalidEnumArgumentException("value", (int)value, typeof(
TextImageRelation
));
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (32)
889
internal
TextImageRelation
textImageRelation;
1154
TextImageRelation
RtlTranslateRelation(
TextImageRelation
relation) {
1158
case
TextImageRelation
.ImageBeforeText:
1159
return
TextImageRelation
.TextBeforeImage;
1160
case
TextImageRelation
.TextBeforeImage:
1161
return
TextImageRelation
.ImageBeforeText;
1280
private static readonly
TextImageRelation
[] _imageAlignToRelation = new
TextImageRelation
[] {
1281
/* TopLeft = */
TextImageRelation
.ImageAboveText |
TextImageRelation
.ImageBeforeText,
1282
/* TopCenter = */
TextImageRelation
.ImageAboveText,
1283
/* TopRight = */
TextImageRelation
.ImageAboveText |
TextImageRelation
.TextBeforeImage,
1285
/* MiddleLeft = */
TextImageRelation
.ImageBeforeText,
1287
/* MiddleRight = */
TextImageRelation
.TextBeforeImage,
1289
/* BottomLeft = */
TextImageRelation
.TextAboveImage |
TextImageRelation
.ImageBeforeText,
1290
/* BottomCenter = */
TextImageRelation
.TextAboveImage,
1291
/* BottomRight = */
TextImageRelation
.TextAboveImage |
TextImageRelation
.TextBeforeImage
1294
private static
TextImageRelation
ImageAlignToRelation(ContentAlignment alignment) {
1298
private static
TextImageRelation
TextAlignToRelation(ContentAlignment alignment) {
1306
TextImageRelation
textImageRelation = RtlTranslateRelation(this.textImageRelation);
1315
if(imageSize == Size.Empty || text == null || text.Length == 0 || textImageRelation ==
TextImageRelation
.Overlay) {
1372
if (textImageRelation ==
TextImageRelation
.TextBeforeImage || textImageRelation ==
TextImageRelation
.ImageBeforeText) {
1378
if (textImageRelation ==
TextImageRelation
.TextAboveImage || textImageRelation ==
TextImageRelation
.ImageAboveText) {
1384
if (textImageRelation ==
TextImageRelation
.ImageBeforeText && layout.imageBounds.Size.Width != 0) {
1389
if (textImageRelation ==
TextImageRelation
.ImageAboveText && layout.imageBounds.Size.Height != 0) {
1529
layout.textImageRelation =
TextImageRelation
.Overlay;
winforms\Managed\System\WinForms\Layout\LayoutUtils.cs (11)
192
public static
TextImageRelation
GetOppositeTextImageRelation(
TextImageRelation
relation) {
193
return (
TextImageRelation
) GetOppositeAnchor((AnchorStyles)relation);
339
public static Size AddAlignedRegion(Size textSize, Size imageSize,
TextImageRelation
relation) {
410
public static bool IsHorizontalRelation(
TextImageRelation
relation) {
411
return (relation & (
TextImageRelation
.TextBeforeImage |
TextImageRelation
.ImageBeforeText)) != 0;
420
public static bool IsVerticalRelation(
TextImageRelation
relation) {
421
return (relation & (
TextImageRelation
.TextAboveImage |
TextImageRelation
.ImageAboveText)) != 0;
498
public static Size SubAlignedRegion(Size currentSize, Size contentSize,
TextImageRelation
relation) {
winforms\Managed\System\WinForms\ToolStripControlHost.cs (1)
550
public new
TextImageRelation
TextImageRelation {
winforms\Managed\System\WinForms\ToolStripItem.cs (5)
60
private
TextImageRelation
textImageRelation =
TextImageRelation
.ImageBeforeText;
2357
[DefaultValue(
TextImageRelation
.ImageBeforeText),
2361
public
TextImageRelation
TextImageRelation {
2367
throw new InvalidEnumArgumentException("value", (int)value, typeof(
TextImageRelation
));
winforms\Managed\System\WinForms\ToolStripSeparator.cs (1)
364
public new
TextImageRelation
TextImageRelation {
winforms\Managed\System\WinForms\WinFormsUtils.cs (3)
429
public static bool IsValidTextImageRelation(
TextImageRelation
relation) {
430
return ClientUtils.IsEnumValid(relation, (int)relation, (int)
TextImageRelation
.Overlay, (int)
TextImageRelation
.TextBeforeImage,1);