53 writes to Text
IdentitySample.Mvc (1)
Controllers\AccountController.cs (1)
355var factorOptions = userFactors.Select(purpose => new SelectListItem { Text = purpose, Value = purpose }).ToList();
Microsoft.AspNetCore.Mvc.ViewFeatures (5)
DefaultHtmlGenerator.cs (1)
1583Text = optionLabel,
HtmlHelper.cs (1)
1387Text = keyValuePair.Key.Name,
Rendering\MultiSelectList.cs (2)
168Text = Eval(item, DataTextField), 192Text = Eval(item, DataTextField),
Rendering\SelectListItem.cs (1)
26Text = text;
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (47)
Rendering\HtmlHelperSelectTest.cs (47)
64new SelectListItem { Text = SelectSources.ModelStateEntry.ToString() }, 65new SelectListItem { Text = SelectSources.ModelStateEntryWithPrefix.ToString() }, 66new SelectListItem { Text = SelectSources.ViewDataEntry.ToString() }, 67new SelectListItem { Text = SelectSources.PropertyOfViewDataEntry.ToString() }, 68new SelectListItem { Text = SelectSources.ViewDataEntryWithPrefix.ToString() }, 69new SelectListItem { Text = SelectSources.PropertyOfViewDataEntryWithPrefix.ToString() }, 70new SelectListItem { Text = SelectSources.ModelValue.ToString() }, 71new SelectListItem { Text = SelectSources.PropertyOfModel.ToString() }, 1414new SelectListItem { Text = "cero", Value = "0" }, 1415new SelectListItem { Text = nameof(EnumWithDisplayNames.One), Value = "1" }, 1416new SelectListItem { Text = "dos", Value = "2" }, 1417new SelectListItem { Text = "tres", Value = "3" }, 1418new SelectListItem { Text = "name from resources", Value = "-2" }, 1419new SelectListItem { Text = "menos uno", Value = "-1" }, 1426new SelectListItem { Text = "cero", Value = "0" }, 1427new SelectListItem { Text = nameof(EnumWithDisplayNames.One), Value = "1" }, 1428new SelectListItem { Text = "dos", Value = "2" }, 1429new SelectListItem { Text = "tres", Value = "3" }, 1430new SelectListItem { Text = "name from resources", Value = "-2" }, 1431new SelectListItem { Text = "menos uno", Value = "-1" }, 1438new SelectListItem { Text = nameof(EnumWithDuplicates.Zero), Value = "0" }, 1439new SelectListItem { Text = nameof(EnumWithDuplicates.None), Value = "0" }, 1440new SelectListItem { Text = nameof(EnumWithDuplicates.One), Value = "1" }, 1441new SelectListItem { Text = nameof(EnumWithDuplicates.Duece), Value = "2" }, 1442new SelectListItem { Text = nameof(EnumWithDuplicates.Two), Value = "2" }, 1443new SelectListItem { Text = nameof(EnumWithDuplicates.MoreThanTwo), Value = "3" }, 1444new SelectListItem { Text = nameof(EnumWithDuplicates.Three), Value = "3" }, 1451new SelectListItem { Text = nameof(EnumWithDuplicates.Zero), Value = "0" }, 1452new SelectListItem { Text = nameof(EnumWithDuplicates.None), Value = "0" }, 1453new SelectListItem { Text = nameof(EnumWithDuplicates.One), Value = "1" }, 1454new SelectListItem { Text = nameof(EnumWithDuplicates.Duece), Value = "2" }, 1455new SelectListItem { Text = nameof(EnumWithDuplicates.Two), Value = "2" }, 1456new SelectListItem { Text = nameof(EnumWithDuplicates.MoreThanTwo), Value = "3" }, 1457new SelectListItem { Text = nameof(EnumWithDuplicates.Three), Value = "3" }, 1464new SelectListItem { Text = nameof(EnumWithFields.Zero), Value = "0" }, 1465new SelectListItem { Text = nameof(EnumWithFields.One), Value = "1" }, 1466new SelectListItem { Text = nameof(EnumWithFields.Two), Value = "2" }, 1467new SelectListItem { Text = nameof(EnumWithFields.Three), Value = "3" }, 1468new SelectListItem { Text = nameof(EnumWithFields.MinusTwo), Value = "-2" }, 1469new SelectListItem { Text = nameof(EnumWithFields.MinusOne), Value = "-1" }, 1476new SelectListItem { Text = nameof(EnumWithFields.Zero), Value = "0" }, 1477new SelectListItem { Text = nameof(EnumWithFields.One), Value = "1" }, 1478new SelectListItem { Text = nameof(EnumWithFields.Two), Value = "2" }, 1479new SelectListItem { Text = nameof(EnumWithFields.Three), Value = "3" }, 1480new SelectListItem { Text = nameof(EnumWithFields.MinusTwo), Value = "-2" }, 1481new SelectListItem { Text = nameof(EnumWithFields.MinusOne), Value = "-1" }, 1605Text = item.Text,
37 references to Text
Microsoft.AspNetCore.Mvc.TagHelpers.Test (4)
SelectTagHelperTest.cs (4)
323var savedText = items.Select(item => item.Text).ToList(); 352Assert.Equal(savedText, items.Select(item => item.Text)); 504var savedText = items.Select(item => item.Text).ToList(); 532Assert.Equal(savedText, items.Select(item => item.Text));
Microsoft.AspNetCore.Mvc.ViewFeatures (19)
DefaultDisplayTemplates.cs (1)
55selectTag.InnerHtml.AppendHtml(DefaultHtmlGenerator.GenerateOption(item, item.Text));
DefaultHtmlGenerator.cs (2)
1645var value = item.Value ?? item.Text; 1649var tagBuilder = GenerateOption(item, item.Text, selected);
Rendering\HtmlHelperSelectExtensions.cs (11)
18/// <see cref="SelectListItem.Text"/> matches the first non-<c>null</c> value found in: 48/// <see cref="SelectListItem.Value"/> (if non-<c>null</c>) or <see cref="SelectListItem.Text"/> matches the 89/// <see cref="SelectListItem.Text"/> matches the first non-<c>null</c> value found in: 123/// <see cref="SelectListItem.Text"/> matches the first non-<c>null</c> value found in: 162/// <see cref="SelectListItem.Text"/> matches the first non-<c>null</c> value found in: 200/// <see cref="SelectListItem.Text"/> matches the first non-<c>null</c> value found in: 235/// <see cref="SelectListItem.Text"/> matches the first non-<c>null</c> value found in: 279/// <see cref="SelectListItem.Text"/> matches the first non-<c>null</c> value found in: 318/// <see cref="SelectListItem.Text"/> matches the first non-<c>null</c> value found in: 348/// <see cref="SelectListItem.Text"/> matches the first non-<c>null</c> value found in: 382/// <see cref="SelectListItem.Text"/> matches the first non-<c>null</c> value found in:
Rendering\IHtmlHelper.cs (3)
255/// <see cref="SelectListItem.Text"/> matches the first non-<c>null</c> value found in: 377/// and the display name as <see cref="SelectListItem.Text"/>. 446/// <see cref="SelectListItem.Text"/> matches an entry in the first non-<c>null</c> collection found in:
Rendering\IHtmlHelperOfT.cs (2)
117/// <see cref="SelectListItem.Text"/> matches the first non-<c>null</c> value found in: 239/// <see cref="SelectListItem.Text"/> matches an entry in the first non-<c>null</c> collection found in:
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (14)
Rendering\HtmlHelperSelectTest.cs (14)
330var savedText = selectList.Select(item => item.Text).ToList(); 341Assert.Equal(savedText, selectList.Select(item => item.Text)); 751var savedText = selectList.Select(item => item.Text).ToList(); 762Assert.Equal(savedText, selectList.Select(item => item.Text)); 1093var savedText = selectList.Select(item => item.Text).ToList(); 1108Assert.Equal(savedText, selectList.Select(item => item.Text)); 1190var savedText = selectList.Select(item => item.Text).ToList(); 1201Assert.Equal(savedText, selectList.Select(item => item.Text)); 1321Assert.Equal("cero en-US", zeroSelect.Text); 1503expected.OrderBy(item => item.Text, StringComparer.Ordinal), 1504result.OrderBy(item => item.Text, StringComparer.Ordinal)); 1565Assert.Equal(expectedItem.Text, actualItem.Text); 1605Text = item.Text,