SenseNet.Portal.UI.PortletFramework.PropertyFieldPanel.RenderBeginTagInternal C# (CSharp) Method

RenderBeginTagInternal() static private method

static private RenderBeginTagInternal ( System.Web.UI.HtmlTextWriter writer, string title, string id ) : void
writer System.Web.UI.HtmlTextWriter
title string
id string
return void
        internal static void RenderBeginTagInternal(HtmlTextWriter writer, string title, string id)
        {
            RenderHeaderInternal(writer, title, id);
        }

Usage Example

コード例 #1
0
        private void RenderPartContentsInternal(HtmlTextWriter writer, EditorPart editorPart)
        {
            if (editorPart == null)
            {
                throw new ArgumentNullException("editorPart");
            }

            Style style2     = this.Zone.PartStyle;
            var   editorName = editorPart.GetType().Name;

            if (!style2.IsEmpty)
            {
                style2.AddAttributesToRender(writer, this.Zone);
            }

            AddAttributes(writer, editorPart);

            writer.RenderBeginTag(HtmlTextWriterTag.Div);
            if (!editorName.Equals("PropertyEditorPart"))
            {
                PropertyFieldPanel.RenderBeginTagInternal(writer, editorPart.Title, editorPart.ID);
                PropertyFieldPanel.RenderContentsStart(writer);
            }
            this.RenderPartContents(writer, editorPart);
            if (!editorName.Equals("PropertyEditorPart"))
            {
                PropertyFieldPanel.RenderContentsEnd(writer);
                PropertyFieldPanel.RenderEndTagInternal(writer);
            }
            writer.RenderEndTag();

            this.EditorZone.EditorPartsAdded = true;
        }