Back to Devexpress

ImageWatermarkOptions.Scale Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-imagewatermarkoptions.md

latest3.4 KB
Original Source

ImageWatermarkOptions.Scale Property

Gets or sets the image scaling percentage.

Namespace : DevExpress.XtraRichEdit.API.Native

Assembly : DevExpress.RichEdit.v25.2.Core.dll

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
public double Scale { get; set; }
vb
Public Property Scale As Double

Property Value

TypeDescription
Double

A double value (from 0 (0%) to 65.5 (6550%)) that is the scaling percentage. The 1 value is equal to 100%.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to Scale
WatermarkFormat

.ImageOptions .Scale

|

Exceptions

TypeDescription
InvalidOperationException

Throws if the specified value is not between 0 and 65.5

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the Scale property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-richedit-document-api/CS/DXRichEditControlAPISample/CodeExamples/WatermarkActions.cs#L51

csharp
imageWatermarkOptions.Washout = false;
imageWatermarkOptions.Scale = 2;
document.WatermarkManager.SetImage(System.Drawing.Image.FromFile("Documents//DevExpress.png"), imageWatermarkOptions);

word-document-api-examples/CS/CodeExamples/WatermarkActions.cs#L60

csharp
imageWatermarkOptions.Washout = false;
imageWatermarkOptions.Scale = 2;

word-document-api-examples/VB/CodeExamples/WatermarkActions.vb#L56

vb
imageWatermarkOptions.Washout = False
imageWatermarkOptions.Scale = 2
' Add an image watermark to all document pages.

See Also

ImageWatermarkOptions Class

ImageWatermarkOptions Members

DevExpress.XtraRichEdit.API.Native Namespace