コード例 #1
0
 private void SetAllNull(SLTextImportDataFieldTypeValues DataFieldType)
 {
     this.DataFieldType    = DataFieldType;
     iDefaultFixedWidth    = 8;
     UseTabDelimiter       = true;
     UseSemicolonDelimiter = false;
     UseCommaDelimiter     = false;
     UseSpaceDelimiter     = false;
     UseCustomDelimiter    = false;
     CustomDelimiter       = ' ';
     MergeDelimiters       = false;
     HasTextQualifier      = true;
     TextQualifier         = '"';
     iImportStartRowIndex  = 1;
     Culture               = CultureInfo.InvariantCulture;
     NumberStyles          = NumberStyles.Any;
     Encoding              = Encoding.Default;
     PreserveSpace         = true;
     dictColumnFormat      = new Dictionary <int, SLTextImportColumnFormatValues>();
     listCustomDateFormats = new List <string>();
     dictFixedWidth        = new Dictionary <int, int>();
 }
コード例 #2
0
 private void SetAllNull(SLTextImportDataFieldTypeValues DataFieldType)
 {
     this.DataFieldType         = DataFieldType;
     this.iDefaultFixedWidth    = 8;
     this.UseTabDelimiter       = true;
     this.UseSemicolonDelimiter = false;
     this.UseCommaDelimiter     = false;
     this.UseSpaceDelimiter     = false;
     this.UseCustomDelimiter    = false;
     this.CustomDelimiter       = ' ';
     this.MergeDelimiters       = false;
     this.HasTextQualifier      = true;
     this.TextQualifier         = '"';
     this.iImportStartRowIndex  = 1;
     this.Culture               = CultureInfo.InvariantCulture;
     this.NumberStyles          = System.Globalization.NumberStyles.Any;
     this.Encoding              = Encoding.Default;
     this.PreserveSpace         = true;
     this.dictColumnFormat      = new Dictionary <int, SLTextImportColumnFormatValues>();
     this.listCustomDateFormats = new List <string>();
     this.dictFixedWidth        = new Dictionary <int, int>();
 }
コード例 #3
0
 /// <summary>
 ///     Initializes an instance of SLTextImportOptions.
 /// </summary>
 /// <param name="DataFieldType">Whether the data source is character delimited or of fixed width.</param>
 public SLTextImportOptions(SLTextImportDataFieldTypeValues DataFieldType)
 {
     SetAllNull(DataFieldType);
 }
コード例 #4
0
 private void SetAllNull(SLTextImportDataFieldTypeValues DataFieldType)
 {
     this.DataFieldType = DataFieldType;
     this.iDefaultFixedWidth = 8;
     this.UseTabDelimiter = true;
     this.UseSemicolonDelimiter = false;
     this.UseCommaDelimiter = false;
     this.UseSpaceDelimiter = false;
     this.UseCustomDelimiter = false;
     this.CustomDelimiter = ' ';
     this.MergeDelimiters = false;
     this.HasTextQualifier = true;
     this.TextQualifier = '"';
     this.iImportStartRowIndex = 1;
     this.Culture = CultureInfo.InvariantCulture;
     this.NumberStyles = System.Globalization.NumberStyles.Any;
     this.Encoding = Encoding.Default;
     this.PreserveSpace = true;
     this.dictColumnFormat = new Dictionary<int, SLTextImportColumnFormatValues>();
     this.listCustomDateFormats = new List<string>();
     this.dictFixedWidth = new Dictionary<int, int>();
 }
コード例 #5
0
 /// <summary>
 /// Initializes an instance of SLTextImportOptions.
 /// </summary>
 /// <param name="DataFieldType">Whether the data source is character delimited or of fixed width.</param>
 public SLTextImportOptions(SLTextImportDataFieldTypeValues DataFieldType)
 {
     this.SetAllNull(DataFieldType);
 }