指定一个全局唯一标识符 (GUID),该 GUID 可用于获取表示旋转边界框的点数组。
命名空间: System.Windows.Ink
程序集: IAWinFX(在 IAWinFX.dll 中)
语法
声明
Public Shared ReadOnly RotatedBoundingBox As Guid
用法
Dim value As Guid
value = PropertyGuidsForContextNodes.RotatedBoundingBox
public static readonly Guid RotatedBoundingBox
public:
static initonly Guid RotatedBoundingBox
public static final Guid RotatedBoundingBox
public static final var RotatedBoundingBox : Guid
备注
RotatedBoundingBox 字段表示在类型为 InkBullet、InkWord、Line 或 Paragraph 的 ContextNode 上界定项目符号、单词、行或段落边界的旋转边界框或旋转矩形。
示例
下面的示例在 AnalysisHintNode 的 ContainsPropertyData 方法中检查确认是否有 RotatedBoundingBox。如果有 RotatedBoundingBox 字段,则该字段转换为一个点数组以填充 myRotatedBoundingBox。
' Get the rotated rectangle that bounds the bullet, word, line, or paragraph
If myAnalysisHintNode.ContainsPropertyData( _
PropertyGuidsForContextNodes.RotatedBoundingBox) Then
Dim myRotatedBoundingBox As Integer() = _
CType(myAnalysisHintNode.GetPropertyData( _
PropertyGuidsForContextNodes.RotatedBoundingBox), Integer())
End If
// Get the rotated rectangle that bounds the bullet, word, line, or paragraph
if (myAnalysisHintNode.ContainsPropertyData(
PropertyGuidsForContextNodes.RotatedBoundingBox))
{
int[] myRotatedBoundingBox =
(int[])myAnalysisHintNode.GetPropertyData(
PropertyGuidsForContextNodes.RotatedBoundingBox);
}
平台
Windows Vista
.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求。
版本信息
.NET Framework
受以下版本支持:3.0
另请参见
参考
PropertyGuidsForContextNodes 类