Class ImageFieldProxy
- Namespace
- Sfrep.AppraiseIt.Model.Scripting
- Assembly
- cs.temp.dll.dll
ImageFieldProxy provides access to all matching image fields.
public class ImageFieldProxy : CompFieldProxyBase
- Inheritance
-
ObjectCompFieldProxyBaseImageFieldProxy
- Inherited Members
-
Object.ToString()Object.Equals(Object)Object.Equals(Object, Object)Object.ReferenceEquals(Object, Object)Object.GetHashCode()Object.GetType()Object.MemberwiseClone()
Properties
FileExtension
Gets the image field data's file extension (i.e. ".jpg", ".png", etc.) for the first matching image field.
If the field does not have image data set, null is returned.
public string FileExtension { get; }
Property Value
- String
HasImage
Returns true if and only if thhe first matching field has image data.
public bool HasImage { get; }
Property Value
- Boolean
Methods
Clear()
Removes all image field data from all matching image fields.
public void Clear()
LoadFromFile(String)
Sets the image data for all matching image fields.
public void LoadFromFile(string filePath)
Parameters
filePath
StringThe path to an image file.
SaveToFile(String)
Saves the image data for the first matching image field to a file. If the image field does not have image data, no file will be created.
public void SaveToFile(string filePath)
Parameters
filePath
StringThe path to save the file. If the file already exists, it will be overwritten.