public int GetDefaultLineStyle(COLORINDEX[] piLineColor, LINESTYLE[] piLineIndex)
        {
            piLineColor[0] = COLORINDEX.CI_DARKBLUE;
            piLineIndex[0] = LINESTYLE.LI_SOLID;

            return VSConstants.S_OK;
        }
        public int GetDefaultLineStyle(COLORINDEX[] piLineColor, LINESTYLE[] piLineIndex)
        {
            // These values are requested by the IDE although they are not used. They
            // would be used if we would want a border around the text.
            piLineColor[0] = COLORINDEX.CI_BLACK;
            piLineIndex[0] = LINESTYLE.LI_SOLID;

            return VSConstants.S_OK;
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Returns the default line attributes for a custom marker type.
 /// </summary>
 /// <returns>
 /// If the method succeeds, it returns <see cref="F:Microsoft.VisualStudio.VSConstants.S_OK"/>. If it fails, it returns an error code.
 /// </returns>
 /// <param name="piLineColor">[out] Pointer to the default line color. For a list of <paramref name="piLineColor"/> values, see <see cref="T:Microsoft.VisualStudio.TextManager.Interop.COLORINDEX"/>. 
 ///                 </param><param name="piLineIndex">[out] Pointer to the default line style. For a list of <paramref name="piLineIndex"/> values, see <see cref="T:Microsoft.VisualStudio.TextManager.Interop.LINESTYLE"/>.
 ///                 </param>
 public virtual int GetDefaultLineStyle(COLORINDEX[] piLineColor, LINESTYLE[] piLineIndex)
 {
     piLineIndex[0] = LINESTYLE.LI_SOLID;
     piLineColor[0] = COLORINDEX.CI_MAGENTA;
     return VSConstants.S_OK;
 }