NonVisualPictureDrawingProperties.PreferRelativeResize Property
Relative Resize Preferred.Represents the attribte in schema: preferRelativeResize
Namespace: DocumentFormat.OpenXml.Presentation
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
声明
<SchemaAttrAttribute(, "preferRelativeResize")> _
Public Property PreferRelativeResize As BooleanValue
Get
Set
用法
Dim instance As NonVisualPictureDrawingProperties
Dim value As BooleanValue
value = instance.PreferRelativeResize
instance.PreferRelativeResize = value
[SchemaAttrAttribute(, "preferRelativeResize")]
public BooleanValue PreferRelativeResize { get; set; }
Property Value
Type: DocumentFormat.OpenXml.BooleanValue
Returns BooleanValue.
Remarks
The following information from the ECMA International Standard ECMA-376 can be useful when working with this class.
Specifies if the user interface should show the resizing of the picture based on the picture's current size or its original size. If this attribute is set to true, then scaling will be relative to the original picture size as opposed to the current picture size.
Consider the case where a picture has been resized within a document and is now 50% of the originally inserted picture size. Now if the user chooses to make a later adjustment to the size of this picture within the generating application, then the value of this attribute should be checked.
If this attribute is set to true then a value of 50% will be shown. Similarly, if this attribute is set to false, then a value of 100% should be shown because the picture has not yet been resized from its current (smaller) size.
The possible values for this attribute are defined by the XML Schema boolean datatype.
See Also
Reference
NonVisualPictureDrawingProperties Class