protected void PrepareCheckedDiv()
    {
        CheckedTextContainerStyle style = SpellChecker.GetCheckedTextContainerStyle();

        SCCheckedDiv.Attributes.Add("class", style.CssClass);
        CssStyleCollection styles = style.GetStyleAttributes(Page);

        foreach (string key in styles.Keys)
        {
            SCCheckedDiv.Style.Add(key, styles[key]);
        }
    }
Esempio n. 2
0
    protected void PrepareCheckedDiv()
    {
        WebControl checkedDiv = RenderUtils.CreateDiv();

        checkedDiv.ID = "SCCheckedDiv";
        SCCheckedDivPlaceHolder.Controls.Add(checkedDiv);

        CheckedTextContainerStyle style = SpellChecker.GetCheckedTextContainerStyle();

        checkedDiv.Attributes.Add("class", style.CssClass);
        CssStyleCollection styles = style.GetStyleAttributes(Page);

        foreach (string key in styles.Keys)
        {
            checkedDiv.Style.Add(key, styles[key]);
        }
    }