public override void WriteGroupCodes() { CGroupCode gc; int flags; GroupCodeList.Clear(); WriteGroupCodeValue(2, LineTypeName.Trim()); WriteGroupCodeValue(3, Description.Trim()); WriteGroupCodeValue(72, AlignmentCode.ToString().Trim()); WriteGroupCodeValue(73, DashLengthItemCount.ToString().Trim()); WriteGroupCodeValue(40, TotalPatternLength.ToString().Trim()); foreach (int x in DashLengthList) { gc = new CGroupCode(); gc.Code = 49; gc.Value = x.ToString().Trim(); GroupCodeList.Add(gc); } flags = GetStandardFlags(); WriteGroupCodeValue(70, flags.ToString().Trim()); }
/// <summary> /// Gets the alignment of a variable. /// </summary> /// <param name="handle"> /// Handle to the data file. /// </param> /// <param name="varName"> /// Variable name. /// </param> /// <param name="alignment"> /// Alignment of the variable. /// </param> /// <returns> /// <see cref="ReturnCode.SPSS_OK"/>, /// <see cref="ReturnCode.SPSS_INVALID_HANDLE"/>, /// <see cref="ReturnCode.SPSS_INVALID_VARNAME"/>, or /// <see cref="ReturnCode.SPSS_VAR_NOTFOUND"/>. /// </returns> /// <remarks> /// This function reports the value of the alignment attribute of a variable. /// </remarks> public static ReturnCode spssGetVarAlignment(int handle, string varName, out AlignmentCode alignment) { return SpssThinWrapper.spssGetVarAlignmentImpl(handle, ref varName, out alignment); }