# ExcelImageScope

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

Class 

`OfficeIMO.Excel`

**Namespace**

`OfficeIMO.Excel`

**Assembly**

`OfficeIMO.Excel`

**Modifiers**

sealed

Edits one [ExcelImage](/api/excel/officeimo-excel-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.

### Returned or exposed by 12

- Method [ExcelImageScope.AltText](/api/excel/officeimo-excel-excelimagescope/#method-alttext-string-string)
- Method [ExcelImageScope.CropRatio](/api/excel/officeimo-excel-excelimagescope/#method-cropratio-double-double-double-double)
- Method [ExcelImageScope.Description](/api/excel/officeimo-excel-excelimagescope/#method-description-string)
- Method [ExcelImageScope.Flip](/api/excel/officeimo-excel-excelimagescope/#method-flip-boolean-boolean)
- Method [ExcelImageScope.HyperlinkUri](/api/excel/officeimo-excel-excelimagescope/#method-hyperlinkuri-uri)
- Method [ExcelImageScope.Name](/api/excel/officeimo-excel-excelimagescope/#method-name-string)
- Method [ExcelImageScope.Rotation](/api/excel/officeimo-excel-excelimagescope/#method-rotation-double)
- Method [ExcelImageScope.RotationDegrees](/api/excel/officeimo-excel-excelimagescope/#method-rotationdegrees-double)
- Method [ExcelImageScope.Size](/api/excel/officeimo-excel-excelimagescope/#method-size-officeimo-officelength-officeimo-officelength)
- Method [ExcelImageScope.SizePercent](/api/excel/officeimo-excel-excelimagescope/#method-sizepercent-double)
- Method [ExcelImageScope.Title](/api/excel/officeimo-excel-excelimagescope/#method-title-string)
- Method [ExcelImageScope.TransparencyPercent](/api/excel/officeimo-excel-excelimagescope/#method-transparencypercent-nullable-system-int32)

### Accepted by parameters 1

- Method [ExcelSheetScope.Image](/api/excel/officeimo-excel-excelsheetscope/#method-image-int32-int32-byte-officeimo-excel-excelimageoptions-action-officeimo-excel-excelimagescope) parameter `configure`

Filter members 

Show inherited

## Methods

`public ExcelImageScope AltText(string description, string? title = null)` [#](#method-alttext-string-string)

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)` [#](#method-cropratio-double-double-double-double)

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)` [#](#method-description-string)

Sets [ExcelImage.Description](/api/excel/officeimo-excel-excelimage/): 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)` [#](#method-flip-boolean-boolean)

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)` [#](#method-hyperlinkuri-uri)

Sets [ExcelImage.HyperlinkUri](/api/excel/officeimo-excel-excelimage/): 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)` [#](#method-name-string)

Sets [ExcelImage.Name](/api/excel/officeimo-excel-excelimage/): Gets or sets the image drawing name.

Parameters

**value string required**

The value.

Returns

`ExcelImageScope` The same scope.

`public ExcelImageScope Rotation(double degrees)` [#](#method-rotation-double)

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)` [#](#method-rotationdegrees-double)

Sets [ExcelImage.RotationDegrees](/api/excel/officeimo-excel-excelimage/): 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)` [#](#method-size-officeimo-officelength-officeimo-officelength)

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)` [#](#method-sizepercent-double)

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)` [#](#method-title-string)

Sets [ExcelImage.Title](/api/excel/officeimo-excel-excelimage/): Gets or sets the image title metadata.

Parameters

**value string required**

The value.

Returns

`ExcelImageScope` The same scope.

`public ExcelImageScope TransparencyPercent(int? value)` [#](#method-transparencypercent-nullable-system-int32)

Sets [ExcelImage.TransparencyPercent](/api/excel/officeimo-excel-excelimage/): 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.

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public ExcelImage Model { get; }` [#](#property-model)

The [ExcelImage](/api/excel/officeimo-excel-excelimage/) this scope edits, for plain C# inside a lambda.

<!-- PowerForge markdown artifact sha256:08F733CE05691335E3913723EE58914AD9F9393A99508A69A4A167B70E230D43 -->
