FileElement MembersC# API

The FileElement type exposes the following members.
Constructors

  NameDescription
Public methodFileElement(String)
Initialises a new instance of the FileElement class, using the specified elementName.
Public methodFileElement(IntPtr, Boolean)
For internal use only. Of no interest to the user.
Back to Top
Methods

  NameDescription
Public methodAddFile(String, String)
Adds a file to the list of files to upload. It will be uploaded when the Form which contains this FileElement is sent to the web server.
Public methodAddFile(String, String, String)
Adds a file to the list of files to upload. It will be uploaded when the Form which contains this FileElement is sent to the web server.
Public methodAddFile(String, String, String, String)
Adds a file to the list of files to upload. It will be uploaded when the Form which contains this FileElement is sent to the web server.
Public methodClearFiles
Clears the list of files to be uploaded.
Public methodClone
Initialises a new instance of the FileElement class, which is a copy of the specified FileElement.
(Overrides InputElement Clone .)
Public methodDispose
Releases all resources used by the FileElement
(Overrides InputElement Dispose .)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetAttribute
Gets the value of the specified attribute, or an empty string if the attribute is not contained within this HTML element.
(Inherited from HtmlElement.)
Public methodStatic membergetCPtr
For internal use only. Of no interest to the user.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHasAttribute
Determines whether this HTML element contains the specified attribute.
(Inherited from HtmlElement.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemoveAttribute
Removes an attribute from this HTML element. This method has no effect if the attribute does not exist.
(Inherited from HtmlElement.)
Public methodRemoveFile
Removes a file from the list of files to be uploaded.
Public methodSetAttribute(String)
Sets the value of the specified attribute to an empty string.
(Inherited from HtmlElement.)
Public methodSetAttribute(String, String)
Sets the value of the specified attribute. The attribute will be added if it does not already exist.
(Inherited from HtmlElement.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Back to Top
Properties

  NameDescription
Public propertyAfterEndTagPosition
Gets the character offset into the HTML document at which the last character (not including < > tag characters) in this HTML element appears.
(Inherited from HtmlElement.)
Public propertyAfterStartTagPosition
Gets the character offset into the HTML document at which the 1st character (not including < > tag characters) in this HTML element appears.
(Inherited from HtmlElement.)
Public propertyAttributes
Gets all the attributes contained in this HtmlElement as an IDictionary of attribute names to values.
(Inherited from HtmlElement.)
Public propertyCharEncoding
Gets or sets the character encoding that is used to decode the data contained in this HtmlElement, for example "UTF-8".
(Inherited from HtmlElement.)
Public propertyChecked
Gets or sets a value that indicates whether the "checked" attribute has been set for this InputElement. This method is equivalent to HasAttribute("checked").
(Inherited from InputElement.)
Public propertyContent
Gets or sets the content of this HTML element. This includes everything between the HTML tags, but excludes the tags themselves and any attributes.
(Inherited from HtmlElement.)
Public propertyContentPosition
Gets the character offset into the HTML document at which this HTML element's content starts.
(Inherited from HtmlElement.)
Public propertyDisabled
Gets or sets a value that indicates whether this HTML element has been disabled.
(Inherited from HtmlElement.)
Public propertyId
Gets or sets the value of the "id" attribute for this HTML element.
(Inherited from HtmlElement.)
Public propertyIsSuccessfulControl
Gets a value that indicates whether this InputElement represents a successful control.
(Inherited from InputElement.)
Public propertyMultipartBoundary
Gets or sets the string that will be used as the boundary between files (including the -- prefix), when encoding this element as multipart/form-data.
Public propertyName
Gets or sets the value of the "name" attribute for this HTML element.
(Inherited from HtmlElement.)
Public propertySubmitted
Gets or sets a value that indicates whether this InputElement has been submitted. For example, a button is submitted when it is pressed.
(Inherited from InputElement.)
Public propertyTag
Gets the tag name of this HTML element.
(Inherited from HtmlElement.)
Public propertyType
Gets the type of this InputElement.
(Inherited from InputElement.)
Public propertyValue
Gets or sets the value of the "value" attribute for this HTML element.
(Inherited from HtmlElement.)
Back to Top
See Also