/// <summary> /// Writes the node as XML /// </summary> /// <param name="writer">The XML writer</param> public void WriteTo(XmlWriter writer) { writer.WriteStartElement("node"); if (MatchLabel != null) { writer.WriteAttributeString("matches", MatchLabel); } if (Split.HasValue) { writer.WriteAttributeString("split", Split.Value.ToString()); } if (ColumnIndex >= 0) { writer.WriteAttributeString("column", ColumnIndex.ToString()); } if (Classification != null) { writer.WriteAttributeString("classification", Classification); } if (Children != null) { foreach (var child in Children) { child.WriteTo(writer); } } writer.WriteEndElement(); }
/// <summary> /// Returns a standard textual representation of the cell. /// </summary> public override string ToString() { return ("DataGridViewNumericUpDownCell { ColumnIndex=" + ColumnIndex.ToString(CultureInfo.CurrentCulture) + ", RowIndex=" + RowIndex.ToString(CultureInfo.CurrentCulture) + " }"); }
/// <summary> /// Returns a standard textual representation of the cell. /// </summary> public override string ToString() { return(string.Format("DataGridViewMultiColumnComboBoxCell {{ ColumnIndex={0}, RowIndex={1} }}", ColumnIndex.ToString(CultureInfo.CurrentCulture), RowIndex.ToString(CultureInfo.CurrentCulture))); }
/// <summary> /// Returns a standard textual representation of the cell. /// </summary> public override string ToString() { return("DataGridViewMaskedTextBoxCell { ColumnIndex=" + ColumnIndex.ToString(CultureInfo.CurrentCulture) + ", RowIndex=" + RowIndex.ToString(CultureInfo.CurrentCulture) + " }"); }
/// <summary> /// Returns a standard textual representation of the cell. /// </summary> public override string ToString() { return ($"KryptonDataGridViewDateTimePickerCell {{ ColumnIndex={ColumnIndex.ToString(CultureInfo.CurrentCulture)}, RowIndex={RowIndex.ToString(CultureInfo.CurrentCulture)} }}"); }
/// <summary> /// Returns a standard textual representation of the cell. /// </summary> public override string ToString() { return("KryptonDataGridViewBinaryCell { ColumnIndex=" + ColumnIndex.ToString(CultureInfo.CurrentCulture) + ", RowIndex=" + RowIndex.ToString(CultureInfo.CurrentCulture) + " }"); }
/// <summary> /// Performs basic instance initialization for a data control field. /// </summary> /// <param name="sortingEnabled">A value that indicates whether the control supports the sorting of columns of data.</param> /// <param name="control">The data control that owns the <see cref="T:System.Web.UI.WebControls.DataControlField" />.</param> /// <returns> /// Always returns false. /// </returns> public override bool Initialize(bool sortingEnabled, Control control) { base.Initialize(sortingEnabled, control); this.HeaderTemplate = new SelectFieldHeaderTemplate(); this.ItemTemplate = new SelectFieldTemplate(); var grid = control as Grid; if (grid != null) { ColumnIndex = grid.GetColumnIndex(this); } string script = string.Format(@" $('input[id$=""_cbSelectHead_{0}""]').click( function() {{ $(this).closest('table').find('input[id$=""_cbSelect_{0}""]').prop('checked', $(this).prop('checked')); }}); ", ColumnIndex); ScriptManager.RegisterStartupScript(control, control.GetType(), "select-all-" + ColumnIndex.ToString(), script, true); return(false); }
public override string ToString() { return("TNumEditDataGridViewCell { ColIndex=" + ColumnIndex.ToString(CultureInfo.CurrentCulture) + ", RowIndex=" + RowIndex.ToString(CultureInfo.CurrentCulture) + " }"); }
public override string ToString() { return(GetType().Name + ": RowIndex: " + RowIndex.ToString() + "; ColumnIndex: " + ColumnIndex.ToString() + ";"); }
/// <summary> /// Custom string representation of this custom cell type. /// </summary> public override string ToString() { return("DataGridViewImageColumnHeaderCell { ColumnIndex=" + ColumnIndex.ToString(CultureInfo.CurrentCulture) + " }"); }
private string GetOptionalParameters() { bool HasOneOptionalParam = false; string OptionalParams = ""; if (Limit != null) { OptionalParams += "limit=" + Limit.ToString(); HasOneOptionalParam = true; } if (ColumnIndex != null) { OptionalParams += ((HasOneOptionalParam) ? "&" : "") + "column_index=" + ColumnIndex.ToString(); HasOneOptionalParam = true; } if (StartDate != null) { OptionalParams += ((HasOneOptionalParam) ? "&" : "") + "start_date=" + StartDate.ToString(); HasOneOptionalParam = true; } if (EndDate != null) { OptionalParams += ((HasOneOptionalParam) ? "&" : "") + "end_date=" + EndDate.ToString(); HasOneOptionalParam = true; } if (Order == eTimeSeriesOrder.Asc) { OptionalParams += ((HasOneOptionalParam) ? "&" : "") + "order=" + Order.ToString(); HasOneOptionalParam = true; } if (Collapse != eTimeSeriesCollapse.None) { OptionalParams += ((HasOneOptionalParam) ? "&" : "") + "collapse=" + Collapse.ToString(); HasOneOptionalParam = true; } if (Transform != eTimeSeriesTransform.None) { OptionalParams += ((HasOneOptionalParam) ? "&" : "") + "transform=" + Transform.ToString(); HasOneOptionalParam = true; } return((HasOneOptionalParam) ? ("?" + OptionalParams) : ""); }
/// <summary> /// Returns a standard textual representation of the cell. /// </summary> public override string ToString() { return ($"DataGridViewNumericUpDownCell [ ColumnIndex={ColumnIndex.ToString(CultureInfo.CurrentCulture)}, RowIndex={RowIndex.ToString(CultureInfo.CurrentCulture)} ]"); }
//Method to get the name of a cell public string GetCellName() { string cellname = ColumnIndex.ToString() + RowIndex.ToString(); return(cellname); }
/// <summary> /// Returns a string that describes the current object. /// </summary> /// <returns>A <see cref="string"/> that represents the current object. </returns> public override string ToString() { return("DataGridViewPositionButtonCell { ColumnIndex=" + ColumnIndex.ToString(CultureInfo.CurrentCulture) + ", RowIndex=" + RowIndex.ToString(CultureInfo.CurrentCulture) + " }"); }
public override string ToString() { return("DataGridCellCoordinates {ColumnIndex = " + ColumnIndex.ToString(CultureInfo.CurrentCulture) + ", Slot = " + Slot.ToString(CultureInfo.CurrentCulture) + "}"); }