コード例 #1
0
        /// <summary>
        /// From the current cursor position in the text editor determine the
        /// selected dialog id.
        /// </summary>
        string GetDialogIdSelectedInTextEditor()
        {
            TextAreaControl textArea = ActiveTextAreaControl;

            if (textArea != null)
            {
                return(WixDocument.GetDialogId(new StringReader(textArea.Document.TextContent), textArea.Caret.Line));
            }
            return(null);
        }