共用方式為


NonVisualPictureDrawingProperties.PreferRelativeResize Property

Definition

preferRelativeResize

Represents the following attribute in the schema: preferRelativeResize

[DocumentFormat.OpenXml.SchemaAttr(0, "preferRelativeResize")]
public DocumentFormat.OpenXml.BooleanValue PreferRelativeResize { get; set; }
public DocumentFormat.OpenXml.BooleanValue PreferRelativeResize { get; set; }
[DocumentFormat.OpenXml.SchemaAttr(0, "preferRelativeResize")]
public DocumentFormat.OpenXml.BooleanValue? PreferRelativeResize { get; set; }
[DocumentFormat.OpenXml.SchemaAttr("preferRelativeResize")]
public DocumentFormat.OpenXml.BooleanValue? PreferRelativeResize { get; set; }
public DocumentFormat.OpenXml.BooleanValue? PreferRelativeResize { get; set; }
member this.PreferRelativeResize : DocumentFormat.OpenXml.BooleanValue with get, set
[<DocumentFormat.OpenXml.SchemaAttr(0, "preferRelativeResize")>]
member this.PreferRelativeResize : DocumentFormat.OpenXml.BooleanValue with get, set
[<DocumentFormat.OpenXml.SchemaAttr("preferRelativeResize")>]
member this.PreferRelativeResize : DocumentFormat.OpenXml.BooleanValue with get, set
Public Property PreferRelativeResize As BooleanValue

Property Value

Returns BooleanValue.

Attributes

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.

Applies to