SpaceNegotiatingAdornmentTag 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
SpaceNegotiatingAdornmentTag使用指定的属性初始化的新实例。
public:
SpaceNegotiatingAdornmentTag(double width, double topSpace, double baseline, double textHeight, double bottomSpace, Microsoft::VisualStudio::Text::PositionAffinity affinity, System::Object ^ identityTag, System::Object ^ providerTag);
public:
SpaceNegotiatingAdornmentTag(double width, double topSpace, double baseline, double textHeight, double bottomSpace, Microsoft::VisualStudio::Text::PositionAffinity affinity, Platform::Object ^ identityTag, Platform::Object ^ providerTag);
SpaceNegotiatingAdornmentTag(double width, double topSpace, double baseline, double textHeight, double bottomSpace, Microsoft::VisualStudio::Text::PositionAffinity affinity, winrt::Windows::Foundation::IInspectable const & identityTag, winrt::Windows::Foundation::IInspectable const & providerTag);
public SpaceNegotiatingAdornmentTag (double width, double topSpace, double baseline, double textHeight, double bottomSpace, Microsoft.VisualStudio.Text.PositionAffinity affinity, object identityTag, object providerTag);
new Microsoft.VisualStudio.Text.Tagging.SpaceNegotiatingAdornmentTag : double * double * double * double * double * Microsoft.VisualStudio.Text.PositionAffinity * obj * obj -> Microsoft.VisualStudio.Text.Tagging.SpaceNegotiatingAdornmentTag
Public Sub New (width As Double, topSpace As Double, baseline As Double, textHeight As Double, bottomSpace As Double, affinity As PositionAffinity, identityTag As Object, providerTag As Object)
参数
- width
- Double
标记的宽度(以像素为单位)。
- topSpace
- Double
和顶部的文本顶部所需的空间 ITextViewLine ITextViewLine 。
- baseline
- Double
空间协调修饰的基线。
- textHeight
- Double
空间协调修饰文本部分的高度(以像素为单位)。
- bottomSpace
- Double
的文本底部和的 botton 之间需要的空间 ITextViewLine ITextViewLine 。
- affinity
- PositionAffinity
PositionAffinity空间协调修饰的。
- identityTag
- Object
与使用的空间协调修饰关联的唯一对象 ITextViewLine 。GetAdornmentBounds.
- providerTag
- Object
标识修饰的提供程序的唯一对象,由) 使用 GetAdornmentTags(Object) 。