Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

ExcelImageScope

OfficeIMO.Excel

Namespace
OfficeIMO.Excel
Assembly
OfficeIMO.Excel
Modifiers
sealed

Edits one ExcelImage: its fluent methods and keywords, each returning this scope.

Inheritance

  • object
  • ExcelImageScope

Usage

Explore 13 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 1

Methods

public ExcelImageScope AltText(string description, string? title = null) #

Sets image title and description metadata.

Parameters

description string required
The value.
title string? = null optional
The value.

Returns

ExcelImageScope The same scope.
public ExcelImageScope CropRatio(double left, double top, double right, double bottom) #

Sets image crop ratios, where 0 means no crop and 1 means the full source dimension.

Parameters

left double required
The value.
top double required
The value.
right double required
The value.
bottom double required
The value.

Returns

ExcelImageScope The same scope.
public ExcelImageScope Description(string value) #

Sets ExcelImage.Description: Gets or sets the image alternative text description.

Parameters

value string required
The value.

Returns

ExcelImageScope The same scope.
public ExcelImageScope Flip(bool horizontal, bool vertical) #

Sets image flip transforms.

Parameters

horizontal bool required
The value.
vertical bool required
The value.

Returns

ExcelImageScope The same scope.
public ExcelImageScope HyperlinkUri(Uri? value) #

Sets ExcelImage.HyperlinkUri: Gets or sets the picture's external hyperlink target. Null removes the click link. Targets are stored in the workbook and are never opened by OfficeIMO.

Parameters

value System.Uri? required
The value.

Returns

ExcelImageScope The same scope.
public ExcelImageScope Name(string value) #

Sets ExcelImage.Name: Gets or sets the image drawing name.

Parameters

value string required
The value.

Returns

ExcelImageScope The same scope.
public ExcelImageScope Rotation(double degrees) #

Sets clockwise image rotation in degrees.

Parameters

degrees double required
Clockwise rotation in degrees. Fractional values are supported by DrawingML.

Returns

ExcelImageScope The same scope.
public ExcelImageScope RotationDegrees(double value) #

Sets ExcelImage.RotationDegrees: Gets or sets clockwise image rotation in degrees.

Parameters

value double required
The value.

Returns

ExcelImageScope The same scope.
public ExcelImageScope Size(OfficeLength width, OfficeLength height) #

Sets the image size as a document length.

Parameters

width OfficeIMO.OfficeLength required
The value.
height OfficeIMO.OfficeLength required
The value.

Returns

ExcelImageScope The same scope.
public ExcelImageScope SizePercent(double percent) #

Scales the image from its current size by the specified percentage.

Parameters

percent double required
Percentage of the current image size. For example, 20 means 20%.

Returns

ExcelImageScope The same scope.
public ExcelImageScope Title(string value) #

Sets ExcelImage.Title: Gets or sets the image title metadata.

Parameters

value string required
The value.

Returns

ExcelImageScope The same scope.
public ExcelImageScope TransparencyPercent(int? value) #

Sets ExcelImage.TransparencyPercent: Gets or sets DrawingML picture transparency from 0 through 100 percent. Null removes the explicit alpha transform.

Parameters

value int? required
The value.

Returns

ExcelImageScope The same scope.

Properties

public ExcelImage Model { get; } #

The ExcelImage this scope edits, for plain C# inside a lambda.