IMinute.GetTypeOfSetImage Method

Determines the type of the set image being in the minute row.
Function GetTypeOfSetImage( _ 
ByVal row As Integer
) As SetImageType
This language is not supported or no code example is available.
SetImageType GetTypeOfSetImage( 
int row 
)
This language is not supported or no code example is available.

Parameters

row
int

The row in the minute where the set image info is stored (1-9999).

Return Value

SetImageType

The type of the set image. This is an option in the set workbook, in the Sets manager (in the Data tab).

Remarks
 
A set image contains the values of the imported set. They are stored in the heading rows of sets.
Example
 

The following example reads the input fields of the set image from row 2 of task A.1, adds a new field and writes the fields back.

' This code reads the input fields of the set image from row 2 of task A.1, adds a new field and writes the fields back.
 
 ' Get the task and the minute.
 Dim Task As ITask = Es.CurrentVersion.Wbs.GetTask("001001001000000000000000")
 Dim Minute As Qdv.UserApi.Iminute = Task.Minute
 
 ' Read the input fields.
 If Minute.GetTypeOfSetImage(2) <> SetImageManagement.SetImageType.InputsObject Then
  ' There are no input fields on this row.
  Throw New InvalidOperationException("The specified row doesn't contain input fields.")
 End If
 Dim Inputfields As SetImageManagement.InputFieldsFromSetImage = Minute.GetSetImageAsObject(2)
 
 ' add a new input field
 Dim inputFld As SetImageManagement.InputFieldFromSetImage = New SetImageManagement.InputFieldFromSetImage()
 inputFld.ControlAddress = "$H$6"
 inputFld.ControlSheetIndex = 2
 inputFld.FieldName = "new_input_field"
 inputFld.Value = "123"
 Inputfields.Fields.Add(inputFld)
 
 ' store the updated input fields
 Minute.StoreSetImageAsObject(2, Inputfields)					
This language is not supported or no code example is available.

Version
 
Available since QDV 7.15.546.

.NET Framework

Supported in: 4.8, 4.7, 4.6, 4.5.2

In this article

Definition