ExcelImageFluent
OfficeIMO.Excel
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
- The instance.
- description string
- The value.
- title string? = null
- The value.
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
- The instance.
- left double
- The value.
- top double
- The value.
- right double
- The value.
- bottom double
- The value.
public static ExcelImage Description(ExcelImage excelImage, string value) #Sets ExcelImage.Description: Gets or sets the image alternative text description.
Parameters
- excelImage OfficeIMO.Excel.ExcelImage
- The instance.
- value string
- The value.
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
- The instance.
- horizontal bool
- The value.
- vertical bool
- The value.
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
- The instance.
- value System.Uri?
- The value.
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
- The instance.
- value string
- The value.
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
- The instance.
- degrees double
- Clockwise rotation in degrees. Fractional values are supported by DrawingML.
public static ExcelImage RotationDegrees(ExcelImage excelImage, double value) #Sets ExcelImage.RotationDegrees: Gets or sets clockwise image rotation in degrees.
Parameters
- excelImage OfficeIMO.Excel.ExcelImage
- The instance.
- value double
- The value.
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
- The instance.
- width OfficeIMO.OfficeLength
- The value.
- height OfficeIMO.OfficeLength
- The value.
public static ExcelImage SizePercent(ExcelImage excelImage, double percent) #Scales the image from its current size by the specified percentage.
Parameters
- excelImage OfficeIMO.Excel.ExcelImage
- The instance.
- percent double
- Percentage of the current image size. For example, 20 means 20%.
public static ExcelImage Title(ExcelImage excelImage, string value) #Sets ExcelImage.Title: Gets or sets the image title metadata.
Parameters
- excelImage OfficeIMO.Excel.ExcelImage
- The instance.
- value string
- The value.
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
- The instance.
- value int?
- The value.
Examples
// C# initializer or property // C# fluent
excelImage.TransparencyPercent = value; excelImage.TransparencyPercent(value);