当前位置: 首页>>代码示例>>C#>>正文


C# IHtmlString.Concat方法代码示例

本文整理汇总了C#中IHtmlString.Concat方法的典型用法代码示例。如果您正苦于以下问题:C# IHtmlString.Concat方法的具体用法?C# IHtmlString.Concat怎么用?C# IHtmlString.Concat使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IHtmlString的用法示例。


在下文中一共展示了IHtmlString.Concat方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: LoadAbsoluteStyles

        public static IHtmlString LoadAbsoluteStyles(this IFrontHtmlHelper frontHtml, string baseUri, string themeName)
        {
            IEnumerable<IHtmlString> styles = new IHtmlString[0];
            var key = "___RegisteredSystemStyles____";
            if (frontHtml.Html.ViewContext.HttpContext.Items[key] == null)
            {
                styles = styles
                    //.Concat(this.IncludeModuleThemeStyles(baseUri))
                    //.Concat(this.IncludeInlineEditingStyles(baseUri))
                    //.Concat(this.IncludeStyleEditingStyles(baseUri))
                  .Distinct(new IHtmlStringComparer());

                //if (this.PageContext.PageRequestContext.Site.EnableJquery)
                //{
                //    styles = styles.Concat(new[] { Kooboo.Common.Web.WebResourceLoader.MvcExtensions.ExternalResources(this.Html, null, "jQuery-Styles", null, baseUri) });
                //}
                styles = styles.Concat(frontHtml.Page_Context.Styles);
                frontHtml.Html.ViewContext.HttpContext.Items[key] = new object();
            }

            styles = styles.Concat(IncludeThemeStyles(frontHtml, themeName, baseUri));

            return new AggregateHtmlString(styles);
        }
开发者ID:Kooboo,项目名称:Ovaldi,代码行数:24,代码来源:LoadStylesExtensions.cs

示例2: RegisterAbsoluteStyles

        public virtual IHtmlString RegisterAbsoluteStyles(string baseUri, string themeName)
        {
            IEnumerable<IHtmlString> styles = new IHtmlString[0];
            var key = "___RegisteredSystemStyles____";
            if (Html.ViewContext.HttpContext.Items[key] == null)
            {
                styles = styles
                  .Concat(this.IncludeModuleThemeStyles(baseUri))
                  .Concat(this.IncludeInlineEditingStyles(baseUri))
                  .Concat(this.IncludeStyleEditingStyles(baseUri))
                  .Distinct(new IHtmlStringComparer());

                Html.ViewContext.HttpContext.Items[key] = new object();
            }
            styles = styles.Concat(this.IncludeThemeStyles(themeName, baseUri))
                .Concat(this.PageContext.Styles);
            return new AggregateHtmlString(styles);
        }
开发者ID:jason1234,项目名称:CMS,代码行数:18,代码来源:FrontHtmlHelper.cs

示例3: RegisterAbsoluteStyles

        public virtual IHtmlString RegisterAbsoluteStyles(string baseUri, string themeName)
        {
            IEnumerable<IHtmlString> styles = new IHtmlString[0];
            var key = "___RegisteredSystemStyles____";
            if (Html.ViewContext.HttpContext.Items[key] == null)
            {
                styles = styles
                  .Concat(this.IncludeModuleThemeStyles(baseUri))
                  .Concat(this.IncludeInlineEditingStyles(baseUri))
                  .Concat(this.IncludeStyleEditingStyles(baseUri))
                  .Distinct(new IHtmlStringComparer());

                if (this.PageContext.PageRequestContext.Site.EnableJquery)
                {
                    styles = styles.Concat(new[] { Kooboo.Web.Mvc.WebResourceLoader.MvcExtensions.ExternalResources(this.Html, null, "jQuery-Styles", null, baseUri) });
                }
                styles = styles.Concat(this.PageContext.Styles);
                Html.ViewContext.HttpContext.Items[key] = new object();
            }

            styles = styles.Concat(this.IncludeThemeStyles(themeName, baseUri));

            return new AggregateHtmlString(styles);
        }
开发者ID:Godoy,项目名称:CMS,代码行数:24,代码来源:FrontHtmlHelper.cs


注:本文中的IHtmlString.Concat方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。