DdeItem

We found 10 examples in language CSharp for this search. You will see 40 fragments of code.

    public override OpenXmlElement CloneNode(bool deep)
    {
      return (OpenXmlElement) this.CloneImp<DdeItem>(deep);
    }


    internal override OpenXmlElement ElementFactory(byte namespaceId, string name)
    {
      if (22 == (int) namespaceId && "ddeItem" == name)
        return (OpenXmlElement) new DdeItem();
      return (OpenXmlElement) null;
    }

using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Xml.Serialization;

namespace NPOI.OpenXmlFormats.Spreadsheet
{
	[Serializable]
	[XmlType(Namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main")]
	[XmlRoot(Namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", IsNullable = true)]
	[DesignerCategory("code")]
	[DebuggerStepThrough]
	public class CT_DdeItems
	{
		private CT_DdeItem[] ddeItemField;

		[XmlElement("ddeItem")]
		public CT_DdeItem[] ddeItem
		{
			get
			{
				return ddeItemField;
			}
			set
			{
				ddeItemField = value;
			}
		}
	}
}

        public int AddStandardPreviewer(string pszExePath, string pszDisplayName, int fUseDDE, string pszDDEService, string pszDDETopicOpenURL, string pszDDEItemOpenURL, string pszDDETopicActivate, string pszDDEItemActivate, uint aspAddPreviewerFlags) {
            throw new NotImplementedException();
        }

        public int GetFirstDefaultPreviewer(out string pbstrDefBrowserPath, out int pfIsInternalBrowser, out int pfIsSystemBrowser) {
            throw new NotImplementedException();
        }

        public int GetStandardEditorFactory(uint dwReserved, ref Guid pguidEditorType, string pszMkDocument, ref Guid rguidLogicalView, out string pbstrPhysicalView, out IVsEditorFactory ppEF) {
            throw new NotImplementedException();
        }

        public int InitializeEditorInstance(uint grfIEI, IntPtr punkDocView, IntPtr punkDocData, string pszMkDocument, ref Guid rguidEditorType, string pszPhysicalView, ref Guid rguidLogicalView, string pszOwnerCaption, string pszEditorCaption, IVsUIHierarchy pHier, uint itemid, IntPtr punkDocDataExisting, VisualStudio.OLE.Interop.IServiceProvider pSPHierContext, ref Guid rguidCmdUI, out IVsWindowFrame ppWindowFrame) {
            throw new NotImplementedException();
        }

        public int IsDocumentInAProject(string pszMkDocument, out IVsUIHierarchy ppUIH, out uint pitemid, out VisualStudio.OLE.Interop.IServiceProvider ppSP, out int pDocInProj) {
            throw new NotImplementedException();
        }

        public int IsDocumentOpen(IVsUIHierarchy pHierCaller, uint itemidCaller, string pszMkDocument, ref Guid rguidLogicalView, uint grfIDO, out IVsUIHierarchy ppHierOpen, uint[] pitemidOpen, out IVsWindowFrame ppWindowFrame, out int pfOpen) {
            throw new NotImplementedException();
        }


        private void FrmDde_Load(object sender, EventArgs e)
        {
            //  Fill DDE Topics combo
            cmbDdeTopics.DisplayMember = "Descricao";
            cmbDdeTopics.ValueMember   = "Topic";
            cmbDdeTopics.DataSource    = Topics;

            txtDdeServer.Text = "BULLDDE";
        }

        private void BtnFindExcel(object sender, EventArgs e)
        {
            using (OpenFileDialog openFileDialog = new OpenFileDialog())
            {
                try
                {
                    openFileDialog.InitialDirectory = "c:\\Planilhas";
                    openFileDialog.Filter = "Excel files (*.xls*)|(*.xls*)|All files (*.*)|*.*";
                    openFileDialog.FilterIndex = 2;

                    if (openFileDialog.ShowDialog() == DialogResult.OK)
                    {
                        txtExcelBook.Text = openFileDialog.FileName;
                        excWb = exc.Workbooks.Open(txtExcelBook.Text);
                        excWs = excWb.Worksheets[1];

                        //  Torna visivel a aplication e ativa a worksheet
                        exc.DisplayStatusBar = false;
                        exc.Visible = true;
                        excWs.Activate();
                    }
                }   catch (Exception ex) { MessageBox.Show(ex.Message); };
            }
        }

        private void CmbDdeTopics_SelectedIndexChanged(object sender, EventArgs e)
        {
            try
            {
                DdeTopic ddeItem = (DdeTopic)cmbDdeTopics.SelectedItem;
                if (ddeItem.Topic == "text")
                {
                    //  Move focus to Result text box
                }
                else
                {
                    //  Monta comandp " = DDEServer | Topics ! Ativo "
                    txtResult.Text = "=" + txtDdeServer.Text.Trim() + "|" + ddeItem.Topic.ToString() + "!" + txtAtivo.Text.Trim();
                }
                this.ActiveControl = txtResult; //  Mov focus to Result text box
            }   catch (Exception ex) { MessageBox.Show(ex.Message); }
        }

        private void BtnWrite2Cell_Click(object sender, EventArgs e)
        {
            try
            {
                exc.DisplayStatusBar = false;
                decimal m = numLinha.Value;  //Linha
                string L = "R" + m.ToString("N0");

                string At = "R4C10";
                if (m > 16) At = "R17C10";                    

                excWs = exc.ActiveWorkbook.ActiveSheet;
                if ( numColuna.Value == 0)
                {                    
                    excWs.Cells[ m, 1] =  txtAtivo.Text.Trim();
                    excWs.Cells[ m, 2] = "=BullDde|Strike!" + txtAtivo.Text.Trim();
                    excWs.Cells[ m, 3] = "=BullDde|MOFC!" + txtAtivo.Text.Trim();
                    excWs.Cells[ m, 4] = "=BullDde|MOFV!" + txtAtivo.Text.Trim();

                    if ( rdbBuy.Checked ) excWs.Cells[m, 6] = "Buy";
                    if ( rdbSell.Checked) excWs.Cells[m, 6] = "Sell";                  

                    //  Set Line Column adressing system
                    exc.ReferenceStyle = Excel.XlReferenceStyle.xlR1C1;
                    excWs.Cells[ m, 8] = "=" + (L + "C5") + (" * ") + (L + "C7");

                    if ( string.Compare( txtAtivo.Text.Trim().Substring(4, 1), "L") <= 0 )
                        excWs.Cells[m, 9] = $"=IF( {At} > {L}C2, {At} - {L}C2 , 0)";
                    if (string.Compare(txtAtivo.Text.Trim().Substring(4, 1), "L") > 0)
                        excWs.Cells[m, 9] = $"=IF( {At} < {L}C2, {L}C2 - {At}, 0)";
                    
                    excWs.Cells[m, 10] = $"=({L}C3 +{L}C4) / 2";

                    string Action = (string)(excWs.Cells[ m, 6].Value);
                    if (Action.Equals("Buy"))
                    {
                        excWs.Cells[m, 11] = $"={L}C5 * ( {L}C9  - {L}C7)";
                        excWs.Cells[m, 13] = $"={L}C5 * ( {L}C10 - {L}C7)";
                    }
                    if (Action.Equals("Sell"))
                    {
                        excWs.Cells[m, 11] = $"={L}C5 * ( {L}C7 - {L}C9 )";
                        excWs.Cells[m, 13] = $"={L}C5 * ( {L}C7 - {L}C10)";
                    }

                    excWs.Cells[m, 14] = $"=BullDDE|Neg!{txtAtivo.Text.Trim()}";
                    excWs.Cells[m, 15] = $"=BullDDE|Min!{txtAtivo.Text.Trim()}";
                    excWs.Cells[m, 16] = $"=BullDDE|Max!{txtAtivo.Text.Trim()}";
                    excWs.Cells[m, 18] = $"=100 * ( {L}C2 - {At} ) / {At}";
                }
                else if (numColuna.Value == 6)  
                {
                    if (rdbBuy.Checked)
                    {
                        excWs.Cells[m, 6] = "Buy";
                        excWs.Cells[m, 11] = $"={L}C5 * ( {L}C9 - {L}C7 )";
                    }
                    if (rdbSell.Checked)
                    {
                        excWs.Cells[m, 6] = "Sell";
                        excWs.Cells[m, 11] = $"={L}C5 * ( {L}C7 - {L}C9 ) ";
                    }      
                }
                else
                {
                    excWs.Cells[numLinha.Value, numColuna.Value] = txtResult.Text.Trim() + "";
                }
            }  catch (Exception ex) { MessageBox.Show(ex.Message); }            
        }      
        
        private void BtnCopyWithReplace(object sender, EventArgs e)
        {
            string w, s;
            Range rngFrom, rngTo;

            excWs = exc.ActiveWorkbook.ActiveSheet;
            //  Browse selected line columns
            for ( decimal n = numColFrom.Value; n <= numColTo.Value ; n++ )
            {
                try
                {                    
                    rngFrom = (Range)excWs.Cells[numLinhaFrom.Value, n];     
                    //  Get range contents
                    w = rngFrom.Formula;
                    //  Get formula prefix if any
                    s = w.Substring(0, w.IndexOf("!") + 1);
                    if ( s.Length == 0)
                        { rngTo = (Range)excWs.Cells[numLinhaTo.Value, n];                // Not a formula
                          rngFrom.Copy( rngTo); }
                    else
                        { excWs.Cells[numLinhaTo.Value, n] = s + txtAtivo.Text.Trim(); }  // It is a formula                  
                }   catch ( Exception ex ) { MessageBox.Show(ex.Message); }
            }
        }


        #endregion

        #region Public Methods

        /// <summary>
        /// The add document.
        /// </summary>
        /// <param name="path">
        /// The path.
        /// </param>
        /// <returns>
        /// </returns>
        public MockWindowFrame AddDocument(string path)
        {
            MockWindowFrame frame = new MockWindowFrame();
            frame.TextLines = new MockTextLines(path);
            this._documents.Add(path, frame);
            return frame;
        }

        #endregion

        #region Implemented Interfaces

        #region IVsUIShellOpenDocument

        /// <summary>
        /// The add standard previewer.
        /// </summary>
        /// <param name="pszExePath">
        /// The psz exe path.
        /// </param>
        /// <param name="pszDisplayName">
        /// The psz display name.
        /// </param>
        /// <param name="fUseDDE">
        /// The f use dde.
        /// </param>
        /// <param name="pszDDEService">
        /// The psz dde service.
        /// </param>
        /// <param name="pszDDETopicOpenURL">
        /// The psz dde topic open url.
        /// </param>
        /// <param name="pszDDEItemOpenURL">
        /// The psz dde item open url.
        /// </param>
        /// <param name="pszDDETopicActivate">
        /// The psz dde topic activate.
        /// </param>
        /// <param name="pszDDEItemActivate">
        /// The psz dde item activate.
        /// </param>
        /// <param name="aspAddPreviewerFlags">
        /// The asp add previewer flags.
        /// </param>
        /// <returns>
        /// The add standard previewer.
        /// </returns>
        /// <exception cref="Exception">
        /// </exception>
        public int AddStandardPreviewer(
            string pszExePath, 
            string pszDisplayName, 
            int fUseDDE, 
            string pszDDEService, 
            string pszDDETopicOpenURL, 
            string pszDDEItemOpenURL, 
            string pszDDETopicActivate, 
            string pszDDEItemActivate, 
            uint aspAddPreviewerFlags)
        {
            throw new Exception("The method or operation is not implemented.");
        }

        /// <summary>
        /// The get first default previewer.
        /// </summary>
        /// <param name="pbstrDefBrowserPath">
        /// The pbstr def browser path.
        /// </param>
        /// <param name="pfIsInternalBrowser">
        /// The pf is internal browser.
        /// </param>
        /// <param name="pfIsSystemBrowser">
        /// The pf is system browser.
        /// </param>
        /// <returns>
        /// The get first default previewer.
        /// </returns>
        /// <exception cref="Exception">
        /// </exception>
        public int GetFirstDefaultPreviewer(out string pbstrDefBrowserPath, out int pfIsInternalBrowser, out int pfIsSystemBrowser)
        {
            throw new Exception("The method or operation is not implemented.");
        }

        /// <summary>
        /// The get standard editor factory.
        /// </summary>
        /// <param name="dwReserved">
        /// The dw reserved.
        /// </param>
        /// <param name="pguidEditorType">
        /// The pguid editor type.
        /// </param>
        /// <param name="pszMkDocument">
        /// The psz mk document.
        /// </param>
        /// <param name="rguidLogicalView">
        /// The rguid logical view.
        /// </param>
        /// <param name="pbstrPhysicalView">
        /// The pbstr physical view.
        /// </param>
        /// <param name="ppEF">
        /// The pp ef.
        /// </param>
        /// <returns>
        /// The get standard editor factory.
        /// </returns>
        /// <exception cref="Exception">
        /// </exception>
        public int GetStandardEditorFactory(uint dwReserved, ref Guid pguidEditorType, string pszMkDocument, ref Guid rguidLogicalView, out string pbstrPhysicalView, out IVsEditorFactory ppEF)
        {
            throw new Exception("The method or operation is not implemented.");
        }

        /// <summary>
        /// The initialize editor instance.
        /// </summary>
        /// <param name="grfIEI">
        /// The grf iei.
        /// </param>
        /// <param name="punkDocView">
        /// The punk doc view.
        /// </param>
        /// <param name="punkDocData">
        /// The punk doc data.
        /// </param>
        /// <param name="pszMkDocument">
        /// The psz mk document.
        /// </param>
        /// <param name="rguidEditorType">
        /// The rguid editor type.
        /// </param>
        /// <param name="pszPhysicalView">
        /// The psz physical view.
        /// </param>
        /// <param name="rguidLogicalView">
        /// The rguid logical view.
        /// </param>
        /// <param name="pszOwnerCaption">
        /// The psz owner caption.
        /// </param>
        /// <param name="pszEditorCaption">
        /// The psz editor caption.
        /// </param>
        /// <param name="pHier">
        /// The p hier.
        /// </param>
        /// <param name="itemid">
        /// The itemid.
        /// </param>
        /// <param name="punkDocDataExisting">
        /// The punk doc data existing.
        /// </param>
        /// <param name="pSPHierContext">
        /// The p sp hier context.
        /// </param>
        /// <param name="rguidCmdUI">
        /// The rguid cmd ui.
        /// </param>
        /// <param name="ppWindowFrame">
        /// The pp window frame.
        /// </param>
        /// <returns>
        /// The initialize editor instance.
        /// </returns>
        /// <exception cref="Exception">
        /// </exception>
        public int InitializeEditorInstance(
            uint grfIEI, 
            IntPtr punkDocView, 
            IntPtr punkDocData, 
            string pszMkDocument, 
            ref Guid rguidEditorType, 
            string pszPhysicalView, 
            ref Guid rguidLogicalView, 
            string pszOwnerCaption, 
            string pszEditorCaption, 
            IVsUIHierarchy pHier, 
            uint itemid, 
            IntPtr punkDocDataExisting, 
            IServiceProvider pSPHierContext, 
            ref Guid rguidCmdUI, 
            out IVsWindowFrame ppWindowFrame)
        {
            throw new Exception("The method or operation is not implemented.");
        }

        /// <summary>
        /// The is document in a project.
        /// </summary>
        /// <param name="pszMkDocument">
        /// The psz mk document.
        /// </param>
        /// <param name="ppUIH">
        /// The pp uih.
        /// </param>
        /// <param name="pitemid">
        /// The pitemid.
        /// </param>
        /// <param name="ppSP">
        /// The pp sp.
        /// </param>
        /// <param name="pDocInProj">
        /// The p doc in proj.
        /// </param>
        /// <returns>
        /// The is document in a project.
        /// </returns>
        /// <exception cref="Exception">
        /// </exception>
        public int IsDocumentInAProject(string pszMkDocument, out IVsUIHierarchy ppUIH, out uint pitemid, out IServiceProvider ppSP, out int pDocInProj)
        {
            throw new Exception("The method or operation is not implemented.");
        }

        private void ReadDdeItems(XmlTextReader reader)
        {
            while (reader.Read())
            {
                if (reader.NodeType == XmlNodeType.Element && reader.LocalName == "Fallback")
                {
                    XmlStreamHelper.ReadUntil(reader, "Fallback");
                }
                if (reader.NodeType == XmlNodeType.Element && reader.LocalName == "ddeItem")
                {
                    DdeItems.Add(new ExcelExternalDdeItem()
                    {
                        Name = reader.GetAttribute("name"),
                        Advise = XmlHelper.GetBoolFromString(reader.GetAttribute("advise")),
                        Ole = XmlHelper.GetBoolFromString(reader.GetAttribute("ole")),
                        PreferPicture = XmlHelper.GetBoolFromString(reader.GetAttribute("preferPic")),
                    });
                }
                else if (reader.NodeType == XmlNodeType.EndElement && reader.LocalName=="ddeItems")
                {
                    break;
                }
            }
        }
        internal override void Save(StreamWriter sw)
        {
            sw.Write($"<ddeLink ddeTopic=\"{DdeTopic}\" ddeService=\"{DdeService}\"><ddeItems>");
            foreach (ExcelExternalDdeItem item in DdeItems)
            {                
                sw.Write(string.Format("<ddeItem name=\"{0}\" {1}{2}{3}/>",
                  item.Name,
                  item.Advise.GetXmlAttributeValue("advise", false),
                  item.Ole.GetXmlAttributeValue("ole", false),
                  item.PreferPicture.GetXmlAttributeValue("preferPic", false)));
            }
            sw.Write("</ddeItems></ddeLink>");
        }

        public int AddStandardPreviewer(string pszExePath, string pszDisplayName, int fUseDDE, string pszDDEService, string pszDDETopicOpenURL, string pszDDEItemOpenURL, string pszDDETopicActivate, string pszDDEItemActivate, uint aspAddPreviewerFlags) {
            throw new NotImplementedException();
        }

        public int GetFirstDefaultPreviewer(out string pbstrDefBrowserPath, out int pfIsInternalBrowser, out int pfIsSystemBrowser) {
            throw new NotImplementedException();
        }

        public int GetStandardEditorFactory(uint dwReserved, ref Guid pguidEditorType, string pszMkDocument, ref Guid rguidLogicalView, out string pbstrPhysicalView, out IVsEditorFactory ppEF) {
            throw new NotImplementedException();
        }

        public int InitializeEditorInstance(uint grfIEI, IntPtr punkDocView, IntPtr punkDocData, string pszMkDocument, ref Guid rguidEditorType, string pszPhysicalView, ref Guid rguidLogicalView, string pszOwnerCaption, string pszEditorCaption, IVsUIHierarchy pHier, uint itemid, IntPtr punkDocDataExisting, VisualStudio.OLE.Interop.IServiceProvider pSPHierContext, ref Guid rguidCmdUI, out IVsWindowFrame ppWindowFrame) {
            throw new NotImplementedException();
        }

        public int IsDocumentInAProject(string pszMkDocument, out IVsUIHierarchy ppUIH, out uint pitemid, out VisualStudio.OLE.Interop.IServiceProvider ppSP, out int pDocInProj) {
            throw new NotImplementedException();
        }

        public int IsDocumentOpen(IVsUIHierarchy pHierCaller, uint itemidCaller, string pszMkDocument, ref Guid rguidLogicalView, uint grfIDO, out IVsUIHierarchy ppHierOpen, uint[] pitemidOpen, out IVsWindowFrame ppWindowFrame, out int pfOpen) {
            throw new NotImplementedException();
        }

        #region Field

        #endregion

        #region Method
        /// <summary>
        /// 初始化界面的文字显示。
        /// </summary>
        private void InitUI()
        {
            this.Icon = Resources.bridge;

            this.menuStrip_Map.Visible = false;

            this.toolStripButton_Add.Text = Resources.FormMap_toolStrip_Map_Add;
            this.toolStripButton_Add.Image = Resources.tag_blue_add;
            this.toolStripButton_Update.Text = Resources.FormMap_toolStrip_Map_Update;
            this.toolStripButton_Update.Image = Resources.tag_blue_edit;
            this.toolStripButton_Delete.Text = Resources.FormMap_toolStrip_Map_Delete;
            this.toolStripButton_Delete.Image = Resources.tag_blue_delete;

            this.InitListView_Map();
        }
        /// <summary>
        /// 初始化指标对应的ListView。
        /// </summary>
        private void InitListView_Map()
        {
            this.listView_Map.Dock = DockStyle.Fill;
            this.listView_Map.View = View.Details;
            this.listView_Map.FullRowSelect = true;
            this.listView_Map.Columns.AddRange(new[]
                                                          {
                                                              new ColumnHeader(){Text ="!",TextAlign = HorizontalAlignment.Center,DisplayIndex = 0,Name ="Icon",Width = 24,},
                                                              new ColumnHeader(){Text ="DDE主题",TextAlign = HorizontalAlignment.Left,DisplayIndex = 1,Name ="Content",Width = 70,},
                                                              new ColumnHeader(){Text ="DDE项",TextAlign = HorizontalAlignment.Left,DisplayIndex = 2,Name = "DDEItem",Width = 70,}, 
                                                              new ColumnHeader(){Text ="OPC地址",TextAlign = HorizontalAlignment.Left,DisplayIndex = 3,Name="OPCAddress",Width=100}, 
                                                              new ColumnHeader(){Text = "描述",TextAlign = HorizontalAlignment.Left,DisplayIndex = 4,Name="Remark",Width = 150}, 
                                                          });
            var imageList = new ImageList();
            imageList.Images.Add(Resources.tag);
            imageList.Images.Add(Resources.tag_blue);
            this.listView_Map.SmallImageList = imageList;
            this.statusBar_Map.Visible = false;
        }

        /// <summary>
        /// 将DDE指标和OPC指标的映射关系绑定到ListView。
        /// </summary>
        private void BindListView_Map()
        {
            var objs = DataProvider.MapProvider.GetAll();
            this.listView_Map.Items.Clear();

            foreach(var obj in objs)
            {
                var item = new ListViewItem(string.Empty,1) {Tag = obj};
                item.SubItems.Add(obj.DDETopic);
                item.SubItems.Add(obj.DDEItem);
                item.SubItems.Add(obj.OPCAddress);
                item.SubItems.Add(obj.Remark);
                

                this.listView_Map.Items.Add(item);
            }
        }

        private void toolStripButton_Add_Click(object sender, EventArgs e)
        {
            var result = new FormMapInput().ShowDialog();
            if(result == System.Windows.Forms.DialogResult.OK)
            {
                this.BindListView_Map();
            }
        }

        private void toolStripButton_Update_Click(object sender, EventArgs e)
        {
            if(this.listView_Map.SelectedItems.Count > 0)
            {
                var result = new FormMapInput(this.listView_Map.SelectedItems[0].Tag as MapInfo).ShowDialog();
                if (result == System.Windows.Forms.DialogResult.OK)
                {
                    this.BindListView_Map();
                }
            }
            else
            {
                MessageBox.Show(Resources.Message_PleaseSelectItem);
            }
            
        }

        private void toolStripButton_Delete_Click(object sender, EventArgs e)
        {
            if (this.listView_Map.SelectedItems.Count > 0)
            {
                if(MessageBox.Show(Resources.Message_ConfirmDeleteText,Resources.Message_ConfirmDeleteCaption,MessageBoxButtons.YesNo,MessageBoxIcon.Asterisk) == System.Windows.Forms.DialogResult.Yes)
                {
                    DataProvider.MapProvider.Delete(this.listView_Map.SelectedItems[0].Tag as MapInfo);
                    this.BindListView_Map();
                }
            }
            else
            {
                MessageBox.Show(Resources.Message_PleaseSelectItem);
            }
        }


        public MockWindowFrame AddDocument(string path)
        {
            MockWindowFrame frame = new MockWindowFrame();
            frame.TextLines = new MockTextLines(path);
            _documents.Add(path, frame);
            return frame;
        }

        #region IVsUIShellOpenDocument Members

        public int AddStandardPreviewer(string pszExePath, string pszDisplayName, int fUseDDE, string pszDDEService, string pszDDETopicOpenURL, string pszDDEItemOpenURL, string pszDDETopicActivate, string pszDDEItemActivate, uint aspAddPreviewerFlags)
        {
            throw new Exception("The method or operation is not implemented.");
        }

        public int GetFirstDefaultPreviewer(out string pbstrDefBrowserPath, out int pfIsInternalBrowser, out int pfIsSystemBrowser)
        {
            throw new Exception("The method or operation is not implemented.");
        }

        public int GetStandardEditorFactory(uint dwReserved, ref Guid pguidEditorType, string pszMkDocument, ref Guid rguidLogicalView, out string pbstrPhysicalView, out IVsEditorFactory ppEF)
        {
            throw new Exception("The method or operation is not implemented.");
        }

        public int InitializeEditorInstance(uint grfIEI, IntPtr punkDocView, IntPtr punkDocData, string pszMkDocument, ref Guid rguidEditorType, string pszPhysicalView, ref Guid rguidLogicalView, string pszOwnerCaption, string pszEditorCaption, IVsUIHierarchy pHier, uint itemid, IntPtr punkDocDataExisting, Microsoft.VisualStudio.OLE.Interop.IServiceProvider pSPHierContext, ref Guid rguidCmdUI, out IVsWindowFrame ppWindowFrame)
        {
            throw new Exception("The method or operation is not implemented.");
        }

        public int IsDocumentInAProject(string pszMkDocument, out IVsUIHierarchy ppUIH, out uint pitemid, out Microsoft.VisualStudio.OLE.Interop.IServiceProvider ppSP, out int pDocInProj)
        {
            throw new Exception("The method or operation is not implemented.");
        }

DocumentFormat.OpenXml.Spreadsheet.DdeItem : IEnumerable

Constructors :

public DdeItem()
public DdeItem(IEnumerable<OpenXmlElement> childElements = )
public DdeItem(OpenXmlElement[] childElements = )
public DdeItem(String outerXml = )

Methods :

public StringValue get_Name()
public Void set_Name(StringValue value = )
public BooleanValue get_UseOle()
public Void set_UseOle(BooleanValue value = )
public BooleanValue get_Advise()
public Void set_Advise(BooleanValue value = )
public BooleanValue get_PreferPicture()
public Void set_PreferPicture(BooleanValue value = )
public Values get_Values()
public Void set_Values(Values value = )
public OpenXmlElement CloneNode(Boolean deep = )
public OpenXmlElement get_FirstChild()
public OpenXmlElement get_LastChild()
public Boolean get_HasChildren()
public String get_InnerText()
public Void set_InnerXml(String value = )
public Boolean AddChild(OpenXmlElement newChild = , Boolean throwOnError = True)
public T AppendChild(T newChild = )
public T InsertAfter(T newChild = , OpenXmlElement referenceChild = )
public T InsertBefore(T newChild = , OpenXmlElement referenceChild = )
public T InsertAt(T newChild = , Int32 index = )
public T PrependChild(T newChild = )
public T RemoveChild(T child = )
public Void RemoveAllChildren()
public T ReplaceChild(OpenXmlElement newChild = , T oldChild = )
public Void RemoveAllChildren()
public Void Remove()
public Boolean IsAfter(OpenXmlElement element = )
public Boolean IsBefore(OpenXmlElement element = )
public Void AddAnnotation(Object annotation = )
public T Annotation()
public Object Annotation(Type type = )
public IEnumerable<T> Annotations()
public IEnumerable<Object> Annotations(Type type = )
public Void RemoveAnnotations()
public Void RemoveAnnotations(Type type = )
public IEnumerator<OpenXmlElement> GetEnumerator()
public Object Clone()
public MarkupCompatibilityAttributes get_MCAttributes()
public Void set_MCAttributes(MarkupCompatibilityAttributes value = )
public String LookupNamespace(String prefix = )
public String LookupPrefix(String namespaceUri = )
public IFeatureCollection get_Features()
public OpenXmlElementContext get_OpenXmlElementContext()
public Boolean get_HasAttributes()
public IEnumerable<OpenXmlAttribute> get_ExtendedAttributes()
public OpenXmlElementList get_ChildElements()
public OpenXmlElement get_Parent()
public String get_NamespaceUri()
public String get_LocalName()
public String get_Prefix()
public IEnumerable<KeyValuePair<StringString>> get_NamespaceDeclarations()
public XmlQualifiedName get_XmlQualifiedName()
public XName get_XName()
public String get_InnerXml()
public String get_OuterXml()
public OpenXmlAttribute GetAttribute(String localName = , String namespaceUri = )
public IList<OpenXmlAttribute> GetAttributes()
public Void SetAttribute(OpenXmlAttribute openXmlAttribute = )
public Void RemoveAttribute(String localName = , String namespaceUri = )
public Void SetAttributes(IEnumerable<OpenXmlAttribute> openXmlAttributes = )
public Void ClearAllAttributes()
public Void AddNamespaceDeclaration(String prefix = , String uri = )
public Void RemoveNamespaceDeclaration(String prefix = )
public T GetFirstChild()
public OpenXmlElement PreviousSibling()
public T PreviousSibling()
public OpenXmlElement NextSibling()
public T NextSibling()
public IEnumerable<OpenXmlElement> Ancestors()
public IEnumerable<T> Ancestors()
public IEnumerable<T> Elements()
public IEnumerable<OpenXmlElement> Elements()
public IEnumerable<T> Descendants()
public IEnumerable<OpenXmlElement> Descendants()
public IEnumerable<OpenXmlElement> ElementsBefore()
public IEnumerable<OpenXmlElement> ElementsAfter()
public Void WriteTo(XmlWriter xmlWriter = )
public Void Append(IEnumerable<OpenXmlElement> newChildren = )
public Void Append(OpenXmlElement[] newChildren = )
public T InsertAfterSelf(T newElement = )
public T InsertBeforeSelf(T newElement = )
public Type GetType()
public String ToString()
public Boolean Equals(Object obj = )
public Int32 GetHashCode()

Other methods