PPJ Web API
HomeCurrent IssuesDownloads
  • Welcome
  • Concepts
  • PPJ.Web.49
    • General
      • Sal
      • Sys
      • SalApplication
      • SalNamedProperties
      • SalWindow
      • WindowActionsEventArgs
      • SalXML
    • COM
      • SalCoClass
      • SalObject
      • SalOleErrorInfo
      • SalSafeArray
      • SalVariant
      • stdole_Font
      • stdole_Picture
      • stdole_StdFont
      • stdole_StdPicture
    • Controls
      • SalBackgroundText
      • SalCheckBox
      • SalComboBox
      • SalContext
      • SalCustomControl
      • SalDataField
        • DataType
      • SalFrame
      • SalGeneralWindow
      • SalGroupBox
      • SalGroupSeparator
      • SalHorizontalScrollBar
      • SalLine
      • SalListBox
      • SalMultilineField
      • SalNavigationBar
      • SalOptionButton
        • OptionButtonStyle
      • SalPicture
        • ImageStorage
      • SalPushbutton
      • SalRadioButton
      • SalTimer
      • SalTreeControl
        • SalTreeItem
      • SalUserControl
      • SalVerticalScrollBar
    • Forms
      • AccessoryType
      • SalDialogBox
      • SalForm
      • SalFormClientArea
      • SalFormStatusBar
      • SalFormTableWindow
      • SalFormToolBar
      • SalFormWindow
      • SalMDIWindow
      • SalRibbonBarBase
      • SalRibbonBarForm
      • SalRibbonBarMDI
    • Interfaces
      • ISalType
      • ISalAccessory
      • ISalControl
      • ISalEditControl
      • ISalListControl
      • ISalListItem
      • ISalMenu
      • ISalPictureControl
      • ISalRadioButton
      • ISalReport
      • ISalWindow
    • Menus
      • SalContextMenu
      • SalFormMainMenu
      • SalMenuItem
      • SalMenuSeparator
      • SalPopupMenu
      • SalWindowsMenu
    • QO
      • SalQuickTabs
      • SalQuickTabsDialog
      • SalQuickTabsForm
      • SalQuickTabsParent
      • SalQuickTabsParentDialog
      • SalQuickTabsParentForm
    • Sql
      • SalSqlBindVariables
      • SalSqlError
      • SalSqlHandle
      • SalSqlSessionHandle
      • Sql
      • SqlContext
      • SqlOra
      • WhenSqlError
    • Types
      • SalArray<T>
      • SalBinary
      • SalBoolean
      • SalDateTime
      • SalFileHandle
      • SalFunctionalClass
      • SalNumber
      • SalResource
      • SalString
      • SalStringContext
      • SalWindowHandle
  • PPJ.Web.Vis.49
    • General
      • Vis
      • VisTblEx
    • Controls
      • VisCalendar
      • VisCalendarDropDown
      • VisColorComboBox
      • VisColorListBox
      • VisComboBoxBase
      • VisDesktopListBox
      • VisDirListBox
      • VisDirTreeListBox
      • VisDriveComboBox
      • VisDriveListBox
      • VisDropDownBase
      • VisFileListBox
      • VisFontComboBox
      • VisFontListBox
      • VisFontNameComboBox
      • VisFontNameListBox
      • VisListBoxBase
      • VisListBoxExtension
      • VisListView
      • VisListViewDropDown
      • VisMeter
      • VisOutlineComboBox
      • VisOutlineListBox
      • VisPictureComboBox
      • VisPictureListBox
      • VisPoint
      • VisRadioListBox
      • VisRect
      • VisSize
      • VisSpinField
      • VisSplitter
      • VisSplitterWindow
        • Orientation
  • PPJ.Web.XSal.49
    • General
      • XSal
      • XSalScript
    • Controls
      • XSalFlatButton
      • XSalHSplitter
      • XSalSplitter
      • XSalToolbar
      • XSalToolbox
      • XSalVSplitter
Powered by GitBook
On this page
  • Parameters
  • Constructors
  • SalArray()
  • SalArray(lengths)
  • SalArray(bounds)
  • Properties
  • Item(index)
  • Item(indices)
  • Items
  • Methods
  • Add(item)
  • AddRange(collection)
  • Contains(item)
  • CopyTo(array)
  • CopyTo(array, arrayIndex)
  • GetArray()
  • GetArray(minLength)
  • GetArray(minLength1, minLength2)
  • GetArray(minLength1, minLength2, minLength3)
  • GetArray(minLength1, minLength2, minLength3, minLength4)
  • IndexOf(item)
  • IndexOf(item, index)
  • Insert(index, item)
  • InsertRange(index, collection)
  • Remove(item)
  • RemoveAt(index)
  • Sort(comparison)
  • Implements
  1. PPJ.Web.49
  2. Types

SalArray<T>

PPJ.Runtime.SalArray<T>

PreviousTypesNextSalBinary

Last updated 2 years ago

Namespace: PPJ.Runtime

Assembly: PPJ.Web.49 (4.9.0.0)

Dynamic array generic class. This class replicates SAL dynamic arrays. It can be used without being declared as an inner class by using the new generics syntax.

public class SalArray<T> : SalArray, IEnumerable<T>, IList<T>, ICollection<T>
Public Class SalArray(Of T)
    Inherits SalArray
    Implements IEnumerable(Of T), IList(Of T), ICollection(Of T)

Parameters

Name
Description

T

Constructors

SalArray()

Constructs a new dynamic array.

SalArray(lengths)

Constructs a new array.

Name
Type
Description

lengths

SalArray(bounds)

Constructs a new array. Example: new SalArray("2:3")

Name
Type
Description

bounds

String definition of the array dimensions. It can specify lower bounds as "2:3".

Properties

Methods

Adds an object to the end of the array.

Parameter
Type
Description

item

The object to be added to the end of the array. The value can be null for reference types.

Adds the elements of the specified collection to the end of the array.

Parameter
Type
Description

collection

The collection whose elements should be added to the end of the array. The collection itself cannot be null, but it can contain elements that are null, if type collection is a reference type.

Throws:

Determines whether an element is in the array.

Parameter
Type
Description

item

The object to locate in the array. The value can be null for reference types.

Copies the entire array to a compatible one-dimensional array, starting at the beginning of the target array.

Parameter
Type
Description

array

Throws:

Copies the entire array to a compatible one-dimensional array, starting at the specified index of the target array.

Parameter
Type
Description

array

arrayIndex

The zero-based index in array at which copying begins.

Throws:

Returns the internal array.

Returns the internal array resized to guarantee the specified minimum unmber of items.

Parameter
Type
Description

minLength

The minimum number of items that should be ensured in the array.

Returns the internal multidimensional array resized to guarantee the specified number of items in each dimension.

Parameter
Type
Description

minLength1

The minimum number of items for the first dimension.

minLength2

The minimum number of items for the second dimension.

Returns the internal multidimensional array resized to guarantee the specified number of items in each dimension.

Parameter
Type
Description

minLength1

The minimum number of items for the first dimension.

minLength2

The minimum number of items for the second dimension.

minLength3

The minimum number of items for the third dimension.

Returns the internal multidimensional array resized to guarantee the specified number of items in each dimension.

Parameter
Type
Description

minLength1

The minimum number of items for the first dimension.

minLength2

The minimum number of items for the second dimension.

minLength3

The minimum number of items for the third dimension.

minLength4

The minimum number of items for the fourth dimension.

Searches for the specified object and returns the zero-based index of the first occurrence within the entire array.

Parameter
Type
Description

item

The object to locate in the array. The value can be null for reference types.

Searches for the specified object and returns the zero-based index of the first occurrence within the range of elements in the array.

Parameter
Type
Description

item

The object to locate in the array. The value can be null for reference types.

index

The zero-based starting index of the search. 0 (zero) is valid in an empty list.

Throws:

Inserts an element into the array at the specified index.

Parameter
Type
Description

index

The zero-based index at which item should be inserted.

item

The object to insert. The value can be null for reference types.

Throws:

Inserts the elements of a collection into the array at the specified index.

Parameter
Type
Description

index

The zero-based index at which the new elements should be inserted.

collection

The collection whose elements should be inserted. The collection itself cannot be null, but it can contain elements that are null, if type collection is a reference type.

Throws:

Removes the first occurrence of a specific object from the array.

Parameter
Type
Description

item

The object to remove from the array. The value can be null for reference types.

Removes the element at the specified index.

Parameter
Type
Description

index

The zero-based index of the element to remove.

Throws:

Sorts the items in the array using the specified comparison expression.

Parameter
Type
Description

comparison

The comparison expression.

Implements

Name
Description

Common base interface for Sal types.

Item(index)

: Returns or sets the item at the specified index.

Item(indices)

: Returns or sets the item at the specified coordinates in a multidimensional array.

Items

: Returns the internal array.

Add(item)

AddRange(collection)

collection is null.

Contains(item)

Returns: . true if item is found in the array; otherwise, false.

CopyTo(array)

The one-dimensional that is the destination of the elements copied. The must have zero-based indexing.

array is null.

The number of elements in the source array is greater than the number of elements that the destination array can contain.

CopyTo(array, arrayIndex)

The one-dimensional that is the destination of the elements copied. The must have zero-based indexing.

array is null.

arrayIndex is less than 0.

The number of elements in the array is greater than the available space from arrayIndex to the end of the destination array .

GetArray()

Returns: .

GetArray(minLength)

Returns: .

GetArray(minLength1, minLength2)

Returns: .

GetArray(minLength1, minLength2, minLength3)

Returns: .

GetArray(minLength1, minLength2, minLength3, minLength4)

Returns: .

IndexOf(item)

Returns: . The zero-based index of the first occurrence of item , if found; otherwise, –1.

IndexOf(item, index)

Returns: . The zero-based index of the first occurrence of item within the range of elements, if found; otherwise, –1.

index is outside the range of valid indexes.

Insert(index, item)

index is less than 0; or index is greater than the number of elements in the array.

InsertRange(index, collection)

collection is null.

index is less than 0; or index is greater than the number of elements in the array.

Remove(item)

Returns: . true if item is successfully removed; otherwise, false. This method also returns false if item was not found.

RemoveAt(index)

index is less than 0; or index is equal to or greater than number of elements in the array.

Sort(comparison)

T
T
T[]
ArgumentNullException
Boolean
ArgumentNullException
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
ArgumentException
T[]
T[]
T[,]
T[,,]
T[,,,]
Int32
Int32
ArgumentOutOfRangeException
ArgumentOutOfRangeException
ArgumentNullException
ArgumentOutOfRangeException
Boolean
ArgumentOutOfRangeException
Int32[]
String[]
T
IEnumerable<T>
T
T[]
Array
Array
T[]
Array
Array
Int32
Int32
Int32
Int32
Int32
Int32
Int32
Int32
Int32
Int32
Int32
T
T
Int32
Int32
T
Int32
IEnumerable<T>
T
Int32
Comparison<T>
ISalType