Click or drag to resize

WebFormBlock Class

Represents a block in a WebFormSection containing fields, gridviews, etc. Blocks are the main content of a section, aligned left to right, they create a new row when there is not enough space left or when the BlockType is set to NewLine.
Inheritance Hierarchy

Namespace:  Packflow.Modeling
Assembly:  MicaSystems.Packflow.Core (in MicaSystems.Packflow.Core.dll) Version: 1.0.0.0 (3.2.0.306)
Syntax
C#
public class WebFormBlock : ModelingObject_Extended

The WebFormBlock type exposes the following members.

Constructors
  NameDescription
Public methodWebFormBlock
Initializes a new instance of the WebFormBlock class.
Top
Properties
  NameDescription
Public propertyBlocks
Gets the children blocks of this block.
Public propertyButtons
Gets the buttons.
Public propertyCondition
Gets or sets the rule specifying when the block is shown or hidden, client-side. Currently not used.
Public propertyFields
Gets the fields.
Public propertyGridViews
Gets the gridviews.
Public propertyGuid
Gets the GUID identifying this object.
(Inherited from ModelingObject.)
Public propertyHideWhenEmpty
Gets or sets a value indicating whether the block should be hidden when it is empty.
Public propertyId
Gets the id identifying this object.
(Inherited from ModelingObject.)
Public propertyIncludes
Obsolete. Gets the includes.
Public propertyInstanceGuid
Gets a guid, unique for this object instance.
(Inherited from ModelingObject.)
Public propertyInstanceLanguage
Gets or sets the instance language (two letters format).
(Inherited from ModelingObject.)
Public propertyIsExtended
Gets a value indicating whether this object is Extended (ModelingObject_Extended) or not, allowing to avoid an "is" verification.
(Inherited from ModelingObject_Extended.)
Public propertyLabelColumnWidth
Gets or sets the width of the labels column when the LabelsDisposition is set to Left.
Public propertyLabels
Gets the labels.
Public propertyLabelsAlignment
Gets or sets the labels' alignment.
Public propertyLabelsDisposition
Gets or sets the labels disposition.
Public propertyModel
Gets the model hosting this object. The Model is the root object of the modeling tree.
(Inherited from ModelingObject.)
Public propertyName
Gets the name of this object.
(Inherited from ModelingObject.)
Public propertyParent
Gets the parent object in the modeling tree.
(Inherited from ModelingObject.)
Public propertyParentType
Gets the type of the parent object in the modeling tree.
(Inherited from ModelingObject.)
Public propertyParts
Gets the parts.
Public propertyPlaceHolders
Gets the placeholders.
Public propertyTitle
Gets or sets the block's title, shown as a caption.
Public propertyTitleRes
Gets or sets the resource containing translations for the Title property.
Public propertyType
Gets or sets the block's type.
Public propertyWidth
Gets or sets the width.
Top
Methods
  NameDescription
Public methodAddBlock(String)
Adds a new block.
Public methodAddBlock(WebFormBlock)
Adds the specified block.
Public methodAddButton
Adds a new button.
Public methodAddField
Adds a new field.
Public methodAddGridView
Adds a new gridview.
Public methodAddInclude
Obsolete. Adds a new include.
Public methodAddLabel
Adds a new label.
Public methodAddPart
Adds a new part.
Public methodAddPlaceHolder
Adds a new placeholder.
Public methodBlockDown
Moves the specified block down.
Public methodBlockUp
Moves the specified block up.
Public methodButtonDown
Moves the specified button down.
Public methodButtonUp
Moves the specified button up.
Public methodChildren
Returns all children objects.
(Inherited from ModelingObject.)
Public methodClearAllColumns
Deletes the fields in all blocks, recursively.
Public methodClearColumns
Deletes the fields of a content-type in all blocks, recursively. This is used when a form is copied to a new content-type.
Public methodClearColumnsInNewModel
Deletes the fields of a content-type in all blocks, recursively. This is used when a form is copied to a new model.
Public methodDeleteBlock
Deletes the specified block.
Public methodDeleteButton(String)
Deletes the button with the specified name.
Public methodDeleteButton(WebFormButton)
Deletes the specified button.
Public methodDeleteField(Int32)
Deletes the field with the specified column id.
Public methodDeleteField(WebFormField)
Deletes the specified field.
Public methodDeleteGridView(String)
Deletes the gridview with the specified name.
Public methodDeleteGridView(WebFormGridView)
Deletes the specified gridview.
Public methodDeleteInclude(String)
Obsolete. Deletes the include with the specified path.
Public methodDeleteInclude(WebFormInclude)
Obsolete. Deletes the specified include.
Public methodDeleteLabel(String)
Deletes the label with the specified name.
Public methodDeleteLabel(WebFormLabel)
Deletes the specified label.
Public methodDeletePart(String)
Deletes the part with the specified name.
Public methodDeletePart(WebFormPart)
Deletes the specified part.
Public methodDeletePlaceHolder(String)
Deletes the placeholder with the specified name.
Public methodDeletePlaceHolder(WebFormPlaceHolder)
Deletes the specified placeholder.
Public methodFieldDown
Moves the specified field down.
Public methodFieldUp
Moves the specified field up.
Public methodGetGuid
Gets the Guid.
(Inherited from ModelingObject.)
Public methodGetListItem
Gets a text representing this object using Id and Name.
(Inherited from ModelingObject.)
Public methodGetName
Gets the name.
(Inherited from ModelingObject.)
Public methodGetObjectSearchType
Searches for a block object of a given type.
Public methodGetObjectsSearchType
Searches for block objects of a given type.
Public methodGetParentParentType
Returns the first parent of a given type in the modeling tree. Returns null if not found.
(Inherited from ModelingObject.)
Public methodGridViewDown
Moves the specified gridview down.
Public methodGridViewUp
Moves the specified gridview up.
Public methodIncludeDown
Obsolete. Moves the specified include down.
Public methodIncludeUp
Obsolete. Moves the specified include up.
Public methodLabelDown
Moves the specified label down.
Public methodLabelUp
Moves the specified label up.
Public methodPartDown
Moves the specified part down.
Public methodPartUp
Moves the specified part up.
Public methodPlaceHolderDown
Moves the specified placeholder down.
Public methodPlaceHolderUp
Moves the specified placeholder up.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdateColumns
Changes the columns' id of all fields to a new content-type. Similar columns are found by a common name.
Top
Extension Methods
  NameDescription
Public Extension MethodAsT
Casts an object to another type. Returns default(T) if the object is null.
(Defined by Utils_Other.)
Public Extension MethodEqualsAll
Checks that this object is equal to every object in parameters.
(Defined by Utils_Other.)
Public Extension MethodEqualsAny
Checks that this object is equal to at least one of the parameters.
(Defined by Utils_Other.)
Public Extension MethodGetString
Converts an object to String using ToString() method, else returns String.Empty.
(Defined by Utils_Other.)
Public Extension MethodIsGenericListOverloaded.
Checks if this object is a System.Collections.Generic.List.
(Defined by Utils_Linq.)
Public Extension MethodIsGenericList(Type)Overloaded.
Checks if this object is a System.Collections.Generic.List using type as T.
(Defined by Utils_Linq.)
Public Extension MethodSerializeOverloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.)
Public Extension MethodSerialize(String)Overloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.)
Public Extension MethodSerializeJsonOverloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Public Extension MethodSerializeJson(ListType)Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Public Extension MethodSerializeJson(DataContractJsonSerializerSettings)Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Top
See Also