139 instantiations of TagBuilder
Microsoft.AspNetCore.Mvc.TagHelpers.Test (44)
AnchorTagHelperTest.cs (7)
119.Returns(new TagBuilder("a")) 170.Returns(new TagBuilder("a")) 224.Returns(new TagBuilder("a")) 282.Returns(new TagBuilder("a")) 341.Returns(new TagBuilder("a")) 397.Returns(new TagBuilder("a")) 458.Returns(new TagBuilder("a"))
FormTagHelperTest.cs (10)
54.Returns(new TagBuilder("form")) 407.Returns(new TagBuilder("form")); 477.Returns(new TagBuilder("form")) 533.Returns(new TagBuilder("form")) 654.Returns(new TagBuilder("form")) 711.Returns(new TagBuilder("form")) 768.Returns(new TagBuilder("form")) 823.Returns(new TagBuilder("form")) 880.Returns(new TagBuilder("form")) 937.Returns(new TagBuilder("form"))
InputTagHelperTest.cs (11)
857var tagBuilder = new TagBuilder("input") 1182var tagBuilder = new TagBuilder("input") 1200.Returns(new TagBuilder("hidden") { TagRenderMode = TagRenderMode.SelfClosing }) 1290var tagBuilder = new TagBuilder("input") 1456var tagBuilder = new TagBuilder("input") 1550var tagBuilder = new TagBuilder("input") 1668var tagBuilder = new TagBuilder("input") 1781var tagBuilder = new TagBuilder("input"); 1859var tagBuilder = new TagBuilder("input"); 1928var tagBuilder = new TagBuilder("input"); 2022var tagBuilder = new TagBuilder("input");
RenderAtEndOfFormTagHelperTest.cs (1)
122var tagBuilder = new TagBuilder(tag);
TagHelperOutputExtensionsTest.cs (8)
779var tagBuilder = new TagBuilder("p"); 807var tagBuilder = new TagBuilder("p"); 829var tagBuilder = new TagBuilder("p"); 857var tagBuilder = new TagBuilder("p"); 881var tagBuilder = new TagBuilder("p"); 903var tagBuilder = new TagBuilder("p"); 932var tagBuilder = new TagBuilder("p"); 954var tagBuilder = new TagBuilder("p");
TestableHtmlGenerator.cs (1)
96var tagBuilder = new TagBuilder("input")
ValidationMessageTagHelperTest.cs (3)
248.Returns(new TagBuilder("span")) 300var tagBuilder = new TagBuilder("span2"); 363var tagBuilder = new TagBuilder("span2");
ValidationSummaryTagHelperTest.cs (3)
353.Returns(new TagBuilder("div")) 396var tagBuilder = new TagBuilder("span2"); 513var tagBuilder = new TagBuilder("span2");
Microsoft.AspNetCore.Mvc.ViewFeatures (21)
DefaultDisplayTemplates.cs (5)
33var inputTag = new TagBuilder("input"); 48var selectTag = new TagBuilder("select"); 238var labelTag = new TagBuilder("div"); 244var valueDivTag = new TagBuilder("div"); 290var hyperlinkTag = new TagBuilder("a");
DefaultEditorTemplates.cs (2)
283var labelTag = new TagBuilder("div"); 290var valueDivTag = new TagBuilder("div");
DefaultHtmlGenerator.cs (14)
240var tagBuilder = new TagBuilder("input"); 387var tagBuilder = new TagBuilder("label"); 567var tagBuilder = new TagBuilder("select"); 644var tagBuilder = new TagBuilder("textarea"); 761var tagBuilder = new TagBuilder(tag); 837messageTag = new TagBuilder(headerTag); 846var htmlSummary = new TagBuilder("ul"); 857var listItem = new TagBuilder("li"); 871var tagBuilder = new TagBuilder("div"); 1043var tagBuilder = new TagBuilder("option"); 1095var tagBuilder = new TagBuilder("form"); 1161var tagBuilder = new TagBuilder("input") 1286var tagBuilder = new TagBuilder("a"); 1602var groupBuilder = new TagBuilder("optgroup");
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (72)
DefaultEditorTemplatesTest.cs (1)
151new TagBuilder("label"),
Rendering\HtmlHelperFormExtensionsTest.cs (27)
277var tagBuilder = new TagBuilder(tagName: "form"); 314var tagBuilder = new TagBuilder(tagName: "form"); 351var tagBuilder = new TagBuilder(tagName: "form"); 385var tagBuilder = new TagBuilder(tagName: "form"); 429var tagBuilder = new TagBuilder(tagName: "form"); 473var tagBuilder = new TagBuilder(tagName: "form"); 513var tagBuilder = new TagBuilder(tagName: "form"); 547var tagBuilder = new TagBuilder(tagName: "form"); 587var tagBuilder = new TagBuilder(tagName: "form"); 628var tagBuilder = new TagBuilder(tagName: "form"); 669var tagBuilder = new TagBuilder(tagName: "form"); 715var tagBuilder = new TagBuilder(tagName: "form"); 761var tagBuilder = new TagBuilder(tagName: "form"); 807var tagBuilder = new TagBuilder(tagName: "form"); 855var tagBuilder = new TagBuilder(tagName: "form"); 895var tagBuilder = new TagBuilder(tagName: "form"); 933var tagBuilder = new TagBuilder(tagName: "form"); 971var tagBuilder = new TagBuilder(tagName: "form"); 1004var tagBuilder = new TagBuilder(tagName: "form"); 1042var tagBuilder = new TagBuilder(tagName: "form"); 1080var tagBuilder = new TagBuilder(tagName: "form"); 1115var tagBuilder = new TagBuilder(tagName: "form"); 1154var tagBuilder = new TagBuilder(tagName: "form"); 1198var tagBuilder = new TagBuilder(tagName: "form"); 1242var tagBuilder = new TagBuilder(tagName: "form"); 1286var tagBuilder = new TagBuilder(tagName: "form"); 1331var tagBuilder = new TagBuilder(tagName: "form");
Rendering\HtmlHelperFormTest.cs (23)
347var tagBuilder = new TagBuilder("input"); 378.Returns(new TagBuilder("form")); 382.Returns(new TagBuilder("antiforgery")); 416.Returns(new TagBuilder("form")); 420.Returns(new TagBuilder("antiforgery")); 455.Returns(new TagBuilder("form")); 459.Returns(new TagBuilder("antiforgery")); 493.Returns(new TagBuilder("form")); 497.Returns(new TagBuilder("antiforgery")); 533.Returns(new TagBuilder("form")); 537.Returns(new TagBuilder("antiforgery")); 572.Returns(new TagBuilder("form")); 576.Returns(new TagBuilder("antiforgery")); 612.Returns(new TagBuilder("form")); 616.Returns(new TagBuilder("antiforgery")); 649.Returns(new TagBuilder("form")); 653.Returns(new TagBuilder("antiforgery")); 692.Returns(new TagBuilder("form")); 696.Returns(new TagBuilder("antiforgery")); 734.Returns(new TagBuilder("form")); 738.Returns(new TagBuilder("antiforgery")); 778.Returns(new TagBuilder("form")); 782.Returns(new TagBuilder("antiforgery"));
Rendering\TagBuilderTest.cs (21)
30var tagBuilder = new TagBuilder("p"); 45var tagBuilder = new TagBuilder("p"); 60var tagBuilder = new TagBuilder("p"); 76var tagBuilder = new TagBuilder("p"); 150var tagBuilder = new TagBuilder("p"); 167var tagBuilder = new TagBuilder("p"); 187var tagBuilder = new TagBuilder("p"); 201var tagBuilder = new TagBuilder("p"); 214var tagBuilder = new TagBuilder("p"); 229var tagBuilder = new TagBuilder("p"); 242var tagBuilder = new TagBuilder("p"); 257var tagBuilder = new TagBuilder("p"); 270var tagBuilder = new TagBuilder("p"); 284var originalTagBuilder = new TagBuilder("p"); 288var clonedTagBuilder = new TagBuilder(originalTagBuilder); 298var originalTagBuilder = new TagBuilder("p"); 302var clonedTagBuilder = new TagBuilder(originalTagBuilder); 313var originalTagBuilder = new TagBuilder("p"); 317var clonedTagBuilder = new TagBuilder(originalTagBuilder); 328var originalTagBuilder = new TagBuilder("p"); 332var clonedTagBuilder = new TagBuilder(originalTagBuilder);
TagHelpersWebSite (2)
TagHelpers\DictionaryPrefixTestTagHelper.cs (2)
18var ulTag = new TagBuilder("ul"); 22var liTag = new TagBuilder("li");
229 references to TagBuilder
Microsoft.AspNetCore.Mvc.TagHelpers (16)
AnchorTagHelper.cs (1)
234TagBuilder tagBuilder;
FormTagHelper.cs (1)
254TagBuilder tagBuilder = null;
InputTagHelper.cs (6)
222TagBuilder tagBuilder; 297private TagBuilder GenerateCheckBox( 330var hiddenForCheckboxTag = Generator.GenerateHiddenForCheckbox(ViewContext, modelExplorer, For.Name); 374private TagBuilder GenerateRadio(ModelExplorer modelExplorer, IDictionary<string, object> htmlAttributes) 395private TagBuilder GenerateTextBox( 450private TagBuilder GenerateHidden(ModelExplorer modelExplorer, IDictionary<string, object> htmlAttributes)
LabelTagHelper.cs (1)
55var tagBuilder = Generator.GenerateLabel(
SelectTagHelper.cs (1)
145var tagBuilder = Generator.GenerateSelect(
TagHelperOutputExtensions.cs (3)
78/// Merges the given <paramref name="tagBuilder"/>'s <see cref="TagBuilder.Attributes"/> into the 82/// <param name="tagBuilder">The <see cref="TagBuilder"/> to merge attributes from.</param> 85public static void MergeAttributes(this TagHelperOutput tagHelperOutput, TagBuilder tagBuilder)
TextAreaTagHelper.cs (1)
83var tagBuilder = Generator.GenerateTextArea(
ValidationMessageTagHelper.cs (1)
86var tagBuilder = Generator.GenerateValidationMessage(
ValidationSummaryTagHelper.cs (1)
90var tagBuilder = Generator.GenerateValidationSummary(
Microsoft.AspNetCore.Mvc.TagHelpers.Test (36)
InputTagHelperTest.cs (10)
857var tagBuilder = new TagBuilder("input") 1182var tagBuilder = new TagBuilder("input") 1290var tagBuilder = new TagBuilder("input") 1456var tagBuilder = new TagBuilder("input") 1550var tagBuilder = new TagBuilder("input") 1668var tagBuilder = new TagBuilder("input") 1781var tagBuilder = new TagBuilder("input"); 1859var tagBuilder = new TagBuilder("input"); 1928var tagBuilder = new TagBuilder("input"); 2022var tagBuilder = new TagBuilder("input");
RenderAtEndOfFormTagHelperTest.cs (10)
12public static TheoryData<List<TagBuilder>, string> RenderAtEndOfFormTagHelperData 17return new TheoryData<List<TagBuilder>, string> 20new List<TagBuilder> 27new List<TagBuilder> 42List<TagBuilder> tagBuilderList, 53foreach (var item in tagBuilderList) 83List<TagBuilder> tagBuilderList, 96foreach (var item in tagBuilderList) 120private static TagBuilder GetTagBuilder(string tag, string name, string type, string value, TagRenderMode mode) 122var tagBuilder = new TagBuilder(tag);
SelectTagHelperTest.cs (2)
602.Returns((TagBuilder)null) 679.Returns((TagBuilder)null)
TagHelperOutputExtensionsTest.cs (8)
779var tagBuilder = new TagBuilder("p"); 807var tagBuilder = new TagBuilder("p"); 829var tagBuilder = new TagBuilder("p"); 857var tagBuilder = new TagBuilder("p"); 881var tagBuilder = new TagBuilder("p"); 903var tagBuilder = new TagBuilder("p"); 932var tagBuilder = new TagBuilder("p"); 954var tagBuilder = new TagBuilder("p");
TestableHtmlGenerator.cs (2)
96var tagBuilder = new TagBuilder("input") 112TagBuilder tagBuilder,
ValidationMessageTagHelperTest.cs (2)
300var tagBuilder = new TagBuilder("span2"); 363var tagBuilder = new TagBuilder("span2");
ValidationSummaryTagHelperTest.cs (2)
396var tagBuilder = new TagBuilder("span2"); 513var tagBuilder = new TagBuilder("span2");
Microsoft.AspNetCore.Mvc.ViewFeatures (112)
DefaultDisplayTemplates.cs (5)
33var inputTag = new TagBuilder("input"); 48var selectTag = new TagBuilder("select"); 238var labelTag = new TagBuilder("div"); 244var valueDivTag = new TagBuilder("div"); 290var hyperlinkTag = new TagBuilder("a");
DefaultEditorTemplates.cs (2)
283var labelTag = new TagBuilder("div"); 290var valueDivTag = new TagBuilder("div");
DefaultHtmlGenerator.cs (46)
125public virtual TagBuilder GenerateActionLink( 145public virtual TagBuilder GeneratePageLink( 187public virtual TagBuilder GenerateCheckBox( 233public virtual TagBuilder GenerateHiddenForCheckbox( 240var tagBuilder = new TagBuilder("input"); 255public virtual TagBuilder GenerateForm( 294public virtual TagBuilder GeneratePageForm( 312public TagBuilder GenerateRouteForm( 328public virtual TagBuilder GenerateHidden( 360public virtual TagBuilder GenerateLabel( 387var tagBuilder = new TagBuilder("label"); 398public virtual TagBuilder GeneratePassword( 423public virtual TagBuilder GenerateRadioButton( 486public virtual TagBuilder GenerateRouteLink( 505public TagBuilder GenerateSelect( 529public virtual TagBuilder GenerateSelect( 567var tagBuilder = new TagBuilder("select"); 596public virtual TagBuilder GenerateTextArea( 644var tagBuilder = new TagBuilder("textarea"); 684public virtual TagBuilder GenerateTextBox( 710public virtual TagBuilder GenerateValidationMessage( 761var tagBuilder = new TagBuilder(tag); 801public virtual TagBuilder GenerateValidationSummary( 825TagBuilder messageTag; 846var htmlSummary = new TagBuilder("ul"); 857var listItem = new TagBuilder("li"); 871var tagBuilder = new TagBuilder("div"); 1036internal static TagBuilder GenerateOption(SelectListItem item, string text) 1041internal static TagBuilder GenerateOption(SelectListItem item, string text, bool selected) 1043var tagBuilder = new TagBuilder("option"); 1085/// A <see cref="TagBuilder"/> instance for the &lt;/form&gt; element. 1087protected virtual TagBuilder GenerateFormCore( 1095var tagBuilder = new TagBuilder("form"); 1129protected virtual TagBuilder GenerateInput( 1161var tagBuilder = new TagBuilder("input") 1278/// <returns>The <see cref="TagBuilder"/>.</returns> 1279protected virtual TagBuilder GenerateLink( 1286var tagBuilder = new TagBuilder("a"); 1299/// <param name="tagBuilder">A <see cref="TagBuilder"/> instance.</param> 1304TagBuilder tagBuilder, 1324/// <param name="tagBuilder">A <see cref="TagBuilder"/> instance.</param> 1329TagBuilder tagBuilder, 1362/// <param name="tagBuilder">A <see cref="TagBuilder"/> instance.</param> 1367TagBuilder tagBuilder, 1602var groupBuilder = new TagBuilder("optgroup"); 1649var tagBuilder = GenerateOption(item, item.Text, selected);
DefaultHtmlGeneratorExtensions.cs (5)
25public static TagBuilder GenerateForm( 35var tagBuilder = generator.GenerateForm(viewContext, actionName, controllerName, routeValues, method, htmlAttributes); 56/// <returns>The <see cref="TagBuilder"/>.</returns> 57public static TagBuilder GenerateRouteForm( 66var tagBuilder = generator.GenerateRouteForm(viewContext, routeName, routeValues, method, htmlAttributes);
HtmlHelper.cs (16)
201var tagBuilder = _htmlGenerator.GenerateActionLink( 598var tagBuilder = _htmlGenerator.GenerateRouteLink( 720var checkbox = _htmlGenerator.GenerateCheckBox( 737var hiddenForCheckbox = _htmlGenerator.GenerateHiddenForCheckbox(ViewContext, modelExplorer, expression); 823var tagBuilder = _htmlGenerator.GenerateSelect( 904var tagBuilder = _htmlGenerator.GenerateForm( 961var tagBuilder = _htmlGenerator.GenerateRouteForm( 1001var tagBuilder = _htmlGenerator.GenerateHidden( 1047var tagBuilder = _htmlGenerator.GenerateLabel( 1097var tagBuilder = _htmlGenerator.GenerateSelect( 1141var tagBuilder = _htmlGenerator.GeneratePassword( 1174var tagBuilder = _htmlGenerator.GenerateRadioButton( 1208var tagBuilder = _htmlGenerator.GenerateTextArea( 1242var tagBuilder = _htmlGenerator.GenerateTextBox( 1276var tagBuilder = _htmlGenerator.GenerateValidationMessage( 1308var tagBuilder = _htmlGenerator.GenerateValidationSummary(
IHtmlGenerator.cs (27)
62/// A <see cref="TagBuilder"/> instance for the &lt;a&gt; element. 64TagBuilder GenerateActionLink( 96/// A <see cref="TagBuilder"/> instance for the &lt;a&gt; element. 98TagBuilder GeneratePageLink( 131/// A <see cref="TagBuilder"/> instance for the &lt;input type="checkbox".../&gt; element. 133TagBuilder GenerateCheckBox( 145TagBuilder GenerateHiddenForCheckbox( 169/// A <see cref="TagBuilder"/> instance for the &lt;/form&gt; element. 171TagBuilder GenerateForm( 199/// A <see cref="TagBuilder"/> instance for the &lt;/form&gt; element. 201TagBuilder GeneratePageForm( 228/// A <see cref="TagBuilder"/> instance for the &lt;/form&gt; element. 230TagBuilder GenerateRouteForm( 252TagBuilder GenerateHidden( 274TagBuilder GenerateLabel( 295TagBuilder GeneratePassword( 317TagBuilder GenerateRadioButton( 345/// A <see cref="TagBuilder"/> instance for the &lt;a&gt; element. 347TagBuilder GenerateRouteLink( 380/// <returns>A new <see cref="TagBuilder"/> describing the &lt;select&gt; element.</returns> 391TagBuilder GenerateSelect( 428/// <returns>A new <see cref="TagBuilder"/> describing the &lt;select&gt; element.</returns> 440TagBuilder GenerateSelect( 478TagBuilder GenerateTextArea( 501TagBuilder GenerateTextBox( 531TagBuilder GenerateValidationMessage( 553TagBuilder GenerateValidationSummary(
NameAndIdProvider.cs (6)
30/// Similar to <see cref="TagBuilder.CreateSanitizedId"/> but caches value for repeated invocations. 53var sanitizedId = TagBuilder.CreateSanitizedId(fullName, invalidCharReplacement); 75/// nothing if <see cref="TagBuilder.Attributes"/> already contains an "id" attribute or the 79/// <param name="tagBuilder">A <see cref="TagBuilder"/> instance that will contain the "id" attribute.</param> 88/// Similar to <see cref="TagBuilder.GenerateId"/> but caches value for repeated invocations. 93TagBuilder tagBuilder,
Rendering\TagBuilder.cs (5)
46public TagBuilder(TagBuilder tagBuilder) 353TagBuilder tagBuilder, 401private readonly TagBuilder _tagBuilder; 404public RenderTagHtmlContent(TagBuilder tagBuilder, TagRenderMode tagRenderMode) 412TagBuilder.WriteTo(_tagBuilder, writer, encoder, _tagRenderMode);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (63)
DefaultEditorTemplatesTest.cs (1)
140.Returns(typeof(TagBuilder).FullName);
DefaultHtmlGeneratorTest.cs (10)
122var tagBuilder = htmlGenerator.GenerateSelect( 177var tagBuilder = htmlGenerator.GenerateTextArea( 207var tagBuilder = htmlGenerator.GenerateTextArea(viewContext, modelExplorer, expression, rows: 1, columns: 1, htmlAttributes); 231var tagBuilder = htmlGenerator.GeneratePassword(viewContext, modelExplorer, expression, null, htmlAttributes); 255var tagBuilder = htmlGenerator.GenerateTextBox(viewContext, modelExplorer, expression, null, null, htmlAttributes); 277var tagBuilder = htmlGenerator.GenerateTextBox(viewContext, modelExplorer, nameof(ModelWithMaxLengthMetadata.FieldWithBothAttributes), null, null, htmlAttributes); 299var tagBuilder = htmlGenerator.GenerateTextBox(viewContext, modelExplorer, nameof(ModelWithMaxLengthMetadata.FieldWithoutAttributes), null, null, htmlAttributes); 323var tagBuilder = htmlGenerator.GenerateTextBox(viewContext, modelExplorer, expression, null, null, htmlAttributes); 430var tagBuilder = htmlGenerator.GenerateHidden(viewContext, modelExplorer, expression, null, false, htmlAttributes); 477var tagBuilder = htmlGenerator.GenerateValidationMessage(
Rendering\HtmlHelperFormExtensionsTest.cs (27)
277var tagBuilder = new TagBuilder(tagName: "form"); 314var tagBuilder = new TagBuilder(tagName: "form"); 351var tagBuilder = new TagBuilder(tagName: "form"); 385var tagBuilder = new TagBuilder(tagName: "form"); 429var tagBuilder = new TagBuilder(tagName: "form"); 473var tagBuilder = new TagBuilder(tagName: "form"); 513var tagBuilder = new TagBuilder(tagName: "form"); 547var tagBuilder = new TagBuilder(tagName: "form"); 587var tagBuilder = new TagBuilder(tagName: "form"); 628var tagBuilder = new TagBuilder(tagName: "form"); 669var tagBuilder = new TagBuilder(tagName: "form"); 715var tagBuilder = new TagBuilder(tagName: "form"); 761var tagBuilder = new TagBuilder(tagName: "form"); 807var tagBuilder = new TagBuilder(tagName: "form"); 855var tagBuilder = new TagBuilder(tagName: "form"); 895var tagBuilder = new TagBuilder(tagName: "form"); 933var tagBuilder = new TagBuilder(tagName: "form"); 971var tagBuilder = new TagBuilder(tagName: "form"); 1004var tagBuilder = new TagBuilder(tagName: "form"); 1042var tagBuilder = new TagBuilder(tagName: "form"); 1080var tagBuilder = new TagBuilder(tagName: "form"); 1115var tagBuilder = new TagBuilder(tagName: "form"); 1154var tagBuilder = new TagBuilder(tagName: "form"); 1198var tagBuilder = new TagBuilder(tagName: "form"); 1242var tagBuilder = new TagBuilder(tagName: "form"); 1286var tagBuilder = new TagBuilder(tagName: "form"); 1331var tagBuilder = new TagBuilder(tagName: "form");
Rendering\HtmlHelperFormTest.cs (2)
347var tagBuilder = new TagBuilder("input"); 591Assert.Equal("antiforgery", Assert.IsType<TagBuilder>(htmlHelper.AntiForgeryToken()).TagName);
Rendering\TagBuilderTest.cs (23)
30var tagBuilder = new TagBuilder("p"); 45var tagBuilder = new TagBuilder("p"); 60var tagBuilder = new TagBuilder("p"); 76var tagBuilder = new TagBuilder("p"); 117var result = TagBuilder.CreateSanitizedId(input, "-"); 128var result = TagBuilder.CreateSanitizedId($"a{c}", "z"); 150var tagBuilder = new TagBuilder("p"); 167var tagBuilder = new TagBuilder("p"); 187var tagBuilder = new TagBuilder("p"); 201var tagBuilder = new TagBuilder("p"); 214var tagBuilder = new TagBuilder("p"); 229var tagBuilder = new TagBuilder("p"); 242var tagBuilder = new TagBuilder("p"); 257var tagBuilder = new TagBuilder("p"); 270var tagBuilder = new TagBuilder("p"); 284var originalTagBuilder = new TagBuilder("p"); 288var clonedTagBuilder = new TagBuilder(originalTagBuilder); 298var originalTagBuilder = new TagBuilder("p"); 302var clonedTagBuilder = new TagBuilder(originalTagBuilder); 313var originalTagBuilder = new TagBuilder("p"); 317var clonedTagBuilder = new TagBuilder(originalTagBuilder); 328var originalTagBuilder = new TagBuilder("p"); 332var clonedTagBuilder = new TagBuilder(originalTagBuilder);
TagHelpersWebSite (2)
TagHelpers\DictionaryPrefixTestTagHelper.cs (2)
18var ulTag = new TagBuilder("ul"); 22var liTag = new TagBuilder("li");