Excerpt |
---|
Inserts and returns an InlineImage at the beginning of this Element. The image that will be inserted is specified by the fileName parameter. |
Signature |
---|
C# | C# | Wiki Markup |
---|
{description}
{excerpt}Inserts and returns an [InlineImage|InlineImage] at the beginning of this Element. The image that will be inserted is specified by the fileName parameter.{excerpt}
{signature:C#}
public virtual InlineImage InsertImageBefore(System.String fileName)
|
Signature |
---|
{signature}{signature:vb.net | vb.net | }
Public Overridable Function InsertImageBefore(ByVal fileName As String) As InlineImage
|
...
A String
containing the filename of the image to insert.
Returns |
---|
An InlineImage object that represents the image that was inserted. |
Exception |
---|
System.Exception | System.Exception | If the image file is not a valid format. See InlineImage.Format for a list of supported formats. |
Example |
---|
Code Block |
---|
| csharp | csharp |
title | C# |
---|
{signature}
{parameters}
{param:fileName}A {{String}} containing the filename of the image to insert.{param}
{returns}An {{InlineImage}} object that represents the image that was inserted.{returns}
{exceptions}
{exception:System.Exception}If the image file is not a valid format. See [InlineImage.Format|InlineImage.Format] for a list of supported formats.{exception}
{example}{code:csharp|title=C#}
InlineImage image = e.InsertImageBefore("C:\sample.jpg");
Code Block |
---|
{code}
{code:vb.net
vb.net | title | |title=vb.net
}
Dim image As InlineImage = e.InsertImageBefore("C:\sample.jpg"){code}
{example}