コード例 #1
0
ファイル: oEmbedPlugin.cs プロジェクト: Geta/oEmbed
        public Control GetControl(PageBase hostPage)
        {
            var oEmbedControl = new oEmbedControl();

            var options = new oEmbedOptions { Url = url.ToString(), MaxWidth = Convert.ToInt32(width.Value), MaxHeight = Convert.ToInt32(height.Value) };

            oEmbedControl.Options = options;

            return oEmbedControl;
        }
コード例 #2
0
        public override void CreateDefaultControls()
        {
            var oEmbedControl = new oEmbedControl();

            var options = new oEmbedOptions { Url = OptionsData.Url, MaxWidth = Convert.ToInt32(OptionsData.MaxWidth), MaxHeight = Convert.ToInt32(OptionsData.MaxHeight) };

            oEmbedControl.Options = options;

            Controls.Add(oEmbedControl);
        }
コード例 #3
0
        public override void CreateDefaultControls()
        {
            var oEmbedControl = new oEmbedControl();

            var options = new oEmbedOptions {
                Url = OptionsData.Url, MaxWidth = Convert.ToInt32(OptionsData.MaxWidth), MaxHeight = Convert.ToInt32(OptionsData.MaxHeight)
            };

            oEmbedControl.Options = options;

            Controls.Add(oEmbedControl);
        }
コード例 #4
0
        public Control GetControl(TemplateControl hostPage)
        {
            var oEmbedControl = new oEmbedControl();

            var options = new oEmbedOptions {
                Url = url.ToString(), MaxWidth = Convert.ToInt32(width.Value), MaxHeight = Convert.ToInt32(height.Value)
            };

            oEmbedControl.Options = options;

            return(oEmbedControl);
        }