ITextRangeProvider.GetAttributeValue(Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
检索文本范围中指定属性的值。
public:
System::Object ^ GetAttributeValue(int attribute);
public object GetAttributeValue(int attribute);
abstract member GetAttributeValue : int -> obj
Public Function GetAttributeValue (attribute As Integer) As Object
参数
- attribute
- Int32
文本属性。
返回
检索表示指定特性的值的对象。 例如, GetAttributeValue(TextPattern.FontNameAttribute) 将返回一个字符串,表示文本范围的字体名称,同时 GetAttributeValue(TextPattern.IsItalicAttribute) 返回类型的 Boolean值。
返回 MixedAttributeValue 指定属性的值是否因文本范围而异。
如果提供程序或控件不支持指定的属性,则返回 NotSupported 。
例外
如果指定的属性无效。
注解
隐藏文本和可见文本之间没有区别。