WmfPlaceableFileHeader.Checksum 属性

定义

获取或设置文件头中前 10 个 WORD 的校验和值。Gets or sets the checksum value for the previous ten WORD s in the header.

public:
 property short Checksum { short get(); void set(short value); };
public short Checksum { get; set; }
member this.Checksum : int16 with get, set
Public Property Checksum As Short

属性值

Int16

文件头中前 10 个 WORD 的校验和值。The checksum value for the previous ten WORD s in the header.

注解

此值可用于尝试检测图元文件是否已损坏。This value can be used in an attempt to detect whether the metafile has become corrupted. 校验和是通过使用运算符将每个 WORD 值与初始值0联接来计算的 XORThe checksum is calculated by joining each WORD value to an initial value of 0 by using the XOR operator.

适用于