共用方式為


IVsHiddenRegionEx.SetBannerAttr 方法

設定橫幅屬性。

命名空間:  Microsoft.VisualStudio.TextManager.Interop
組件:  Microsoft.VisualStudio.TextManager.Interop.8.0 (在 Microsoft.VisualStudio.TextManager.Interop.8.0.dll 中)

語法

'宣告
Function SetBannerAttr ( _
    dwLength As UInteger, _
    pColorAttr As UInteger() _
) As Integer
int SetBannerAttr(
    uint dwLength,
    uint[] pColorAttr
)
int SetBannerAttr(
    [InAttribute] unsigned int dwLength, 
    [InAttribute] array<unsigned int>^ pColorAttr
)
abstract SetBannerAttr : 
        dwLength:uint32 * 
        pColorAttr:uint32[] -> int
function SetBannerAttr(
    dwLength : uint, 
    pColorAttr : uint[]
) : int

參數

  • dwLength
    類型:UInt32

    橫幅的長度。

  • pColorAttr
    類型:array<UInt32[]

    ULONG 的色彩屬性陣列。

傳回值

類型:Int32
如果此方法將會成功,則會傳回S_OK。如果失敗,它就會傳回錯誤碼。

.NET Framework 安全性

請參閱

參考

IVsHiddenRegionEx 介面

Microsoft.VisualStudio.TextManager.Interop 命名空間