Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

ExcelImageFluent

OfficeIMO.Excel

Namespace
OfficeIMO.Excel
Assembly
OfficeIMO.Excel
Modifiers
static

The fluent methods of ExcelImage, generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.

Inheritance

  • object
  • ExcelImageFluent

Methods

public static ExcelImage AltText(ExcelImage excelImage, string description, string? title = null) #

Sets image title and description metadata.

Parameters

excelImage OfficeIMO.Excel.ExcelImage required
The instance.
description string required
The value.
title string? = null optional
The value.

Returns

ExcelImage The same instance.
public static ExcelImage CropRatio(ExcelImage excelImage, 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

excelImage OfficeIMO.Excel.ExcelImage required
The instance.
left double required
The value.
top double required
The value.
right double required
The value.
bottom double required
The value.

Returns

ExcelImage The same instance.
public static ExcelImage Description(ExcelImage excelImage, string value) #

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

Parameters

excelImage OfficeIMO.Excel.ExcelImage required
The instance.
value string required
The value.

Returns

ExcelImage The same instance.

Examples

// C# initializer or property      // C# fluent
excelImage.Description = value;    excelImage.Description(value);
public static ExcelImage Flip(ExcelImage excelImage, bool horizontal, bool vertical) #

Sets image flip transforms.

Parameters

excelImage OfficeIMO.Excel.ExcelImage required
The instance.
horizontal bool required
The value.
vertical bool required
The value.

Returns

ExcelImage The same instance.
public static ExcelImage HyperlinkUri(ExcelImage excelImage, 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

excelImage OfficeIMO.Excel.ExcelImage required
The instance.
value System.Uri? required
The value.

Returns

ExcelImage The same instance.

Examples

// C# initializer or property       // C# fluent
excelImage.HyperlinkUri = value;    excelImage.HyperlinkUri(value);
public static ExcelImage Name(ExcelImage excelImage, string value) #

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

Parameters

excelImage OfficeIMO.Excel.ExcelImage required
The instance.
value string required
The value.

Returns

ExcelImage The same instance.

Examples

// C# initializer or property    // C# fluent
excelImage.Name = value;         excelImage.Name(value);
public static ExcelImage Rotation(ExcelImage excelImage, double degrees) #

Sets clockwise image rotation in degrees.

Parameters

excelImage OfficeIMO.Excel.ExcelImage required
The instance.
degrees double required
Clockwise rotation in degrees. Fractional values are supported by DrawingML.

Returns

ExcelImage The same instance.
public static ExcelImage RotationDegrees(ExcelImage excelImage, double value) #

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

Parameters

excelImage OfficeIMO.Excel.ExcelImage required
The instance.
value double required
The value.

Returns

ExcelImage The same instance.

Examples

// C# initializer or property          // C# fluent
excelImage.RotationDegrees = value;    excelImage.RotationDegrees(value);
public static ExcelImage Size(ExcelImage excelImage, OfficeLength width, OfficeLength height) #

Sets the image size as a document length.

Parameters

excelImage OfficeIMO.Excel.ExcelImage required
The instance.
width OfficeIMO.OfficeLength required
The value.
height OfficeIMO.OfficeLength required
The value.

Returns

ExcelImage The same instance.
public static ExcelImage SizePercent(ExcelImage excelImage, double percent) #

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

Parameters

excelImage OfficeIMO.Excel.ExcelImage required
The instance.
percent double required
Percentage of the current image size. For example, 20 means 20%.

Returns

ExcelImage The same instance.
public static ExcelImage Title(ExcelImage excelImage, string value) #

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

Parameters

excelImage OfficeIMO.Excel.ExcelImage required
The instance.
value string required
The value.

Returns

ExcelImage The same instance.

Examples

// C# initializer or property    // C# fluent
excelImage.Title = value;        excelImage.Title(value);
public static ExcelImage TransparencyPercent(ExcelImage excelImage, int? value) #

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

Parameters

excelImage OfficeIMO.Excel.ExcelImage required
The instance.
value int? required
The value.

Returns

ExcelImage The same instance.

Examples

// C# initializer or property              // C# fluent
excelImage.TransparencyPercent = value;    excelImage.TransparencyPercent(value);