Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Framework / System / Windows / Documents / FixedSOMTableRow.cs / 1 / FixedSOMTableRow.cs
/*++ File: FixedSOMTableRow.cs Copyright (C) 2005 Microsoft Corporation. All rights reserved. Description: This class reprsents a table row on the page. It would contain several table cells History: 05/17/2005: eleese - Created --*/ namespace System.Windows.Documents { using System.Windows.Shapes; using System.Windows.Media; using System.Globalization; using System.Diagnostics; using System.Windows; internal sealed class FixedSOMTableRow : FixedSOMContainer { //-------------------------------------------------------------------- // // Constructors // //--------------------------------------------------------------------- #region Constructors public FixedSOMTableRow() { } #endregion Constructors //------------------------------------------------------------------- // // Public Methods // //--------------------------------------------------------------------- #region Public Methods #if DEBUG public override void Render(DrawingContext dc, string label, DrawDebugVisual debugVisual) { /* Pen pen = new Pen(Brushes.Red, 5); Rect rect = _boundingRect; dc.DrawRectangle(null, pen , rect); CultureInfo EnglishCulture = CultureInfo.GetCultureInfoByIetfLanguageTag("en-US"); FormattedText ft = new FormattedText(String.Format("{0} columns", _semanticBoxes.Count), EnglishCulture, FlowDirection.LeftToRight, new Typeface("Courier New"), 20, Brushes.Red); Point labelLocation = new Point(rect.Right + 10, (rect.Bottom + rect.Top) / 2 - 10); dc.DrawText(ft, labelLocation); */ for (int i = 0; i < _semanticBoxes.Count; i++) { _semanticBoxes[i].Render(dc, label + ":" + i.ToString(), debugVisual); } } #endif public void AddCell(FixedSOMTableCell cell) { base.Add(cell); } #endregion Internal Methods #region Internal Properties internal override FixedElement.ElementType[] ElementTypes { get { return new FixedElement.ElementType[1] { FixedElement.ElementType.TableRow }; } } internal bool IsEmpty { get { foreach (FixedSOMTableCell cell in this.SemanticBoxes) { if (!cell.IsEmpty) { return false; } } return true; } } #endregion Internal Properties //-------------------------------------------------------------------- // // Private Fields // //--------------------------------------------------------------------- #region Private Fields #endregion Private Fields } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. /*++ File: FixedSOMTableRow.cs Copyright (C) 2005 Microsoft Corporation. All rights reserved. Description: This class reprsents a table row on the page. It would contain several table cells History: 05/17/2005: eleese - Created --*/ namespace System.Windows.Documents { using System.Windows.Shapes; using System.Windows.Media; using System.Globalization; using System.Diagnostics; using System.Windows; internal sealed class FixedSOMTableRow : FixedSOMContainer { //-------------------------------------------------------------------- // // Constructors // //--------------------------------------------------------------------- #region Constructors public FixedSOMTableRow() { } #endregion Constructors //------------------------------------------------------------------- // // Public Methods // //--------------------------------------------------------------------- #region Public Methods #if DEBUG public override void Render(DrawingContext dc, string label, DrawDebugVisual debugVisual) { /* Pen pen = new Pen(Brushes.Red, 5); Rect rect = _boundingRect; dc.DrawRectangle(null, pen , rect); CultureInfo EnglishCulture = CultureInfo.GetCultureInfoByIetfLanguageTag("en-US"); FormattedText ft = new FormattedText(String.Format("{0} columns", _semanticBoxes.Count), EnglishCulture, FlowDirection.LeftToRight, new Typeface("Courier New"), 20, Brushes.Red); Point labelLocation = new Point(rect.Right + 10, (rect.Bottom + rect.Top) / 2 - 10); dc.DrawText(ft, labelLocation); */ for (int i = 0; i < _semanticBoxes.Count; i++) { _semanticBoxes[i].Render(dc, label + ":" + i.ToString(), debugVisual); } } #endif public void AddCell(FixedSOMTableCell cell) { base.Add(cell); } #endregion Internal Methods #region Internal Properties internal override FixedElement.ElementType[] ElementTypes { get { return new FixedElement.ElementType[1] { FixedElement.ElementType.TableRow }; } } internal bool IsEmpty { get { foreach (FixedSOMTableCell cell in this.SemanticBoxes) { if (!cell.IsEmpty) { return false; } } return true; } } #endregion Internal Properties //-------------------------------------------------------------------- // // Private Fields // //--------------------------------------------------------------------- #region Private Fields #endregion Private Fields } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ProgressBarAutomationPeer.cs
- XmlSchemaInfo.cs
- FastPropertyAccessor.cs
- CodePageEncoding.cs
- Model3D.cs
- ProjectionPathSegment.cs
- PageAction.cs
- BooleanProjectedSlot.cs
- MobileCapabilities.cs
- XamlPoint3DCollectionSerializer.cs
- PackUriHelper.cs
- IndexedGlyphRun.cs
- NetworkStream.cs
- NameValueConfigurationCollection.cs
- RuntimeUtils.cs
- FieldBuilder.cs
- PointAnimationUsingKeyFrames.cs
- ExceptionValidationRule.cs
- IpcServerChannel.cs
- activationcontext.cs
- EnumerableRowCollectionExtensions.cs
- CollectionView.cs
- CardSpacePolicyElement.cs
- ConfigXmlSignificantWhitespace.cs
- VisemeEventArgs.cs
- DiagnosticsElement.cs
- NullableLongSumAggregationOperator.cs
- TdsParserSafeHandles.cs
- AutoGeneratedFieldProperties.cs
- Random.cs
- TextTreeRootNode.cs
- ClockGroup.cs
- EntityCommandCompilationException.cs
- SymbolEqualComparer.cs
- SelectionProviderWrapper.cs
- ColumnCollection.cs
- XmlNamedNodeMap.cs
- QualificationDataItem.cs
- ToolZone.cs
- MemberInfoSerializationHolder.cs
- LineServicesCallbacks.cs
- OdbcConnectionPoolProviderInfo.cs
- UpdateException.cs
- EncoderNLS.cs
- NextPreviousPagerField.cs
- DecodeHelper.cs
- TableParagraph.cs
- EntitySet.cs
- XmlnsCache.cs
- ExpressionBindingCollection.cs
- EntityDataSourceColumn.cs
- DbConnectionOptions.cs
- DataServiceHost.cs
- AlternateViewCollection.cs
- CriticalFinalizerObject.cs
- FileDialogPermission.cs
- httpapplicationstate.cs
- DbQueryCommandTree.cs
- Inline.cs
- ContextProperty.cs
- RangeValuePattern.cs
- XmlName.cs
- CategoryValueConverter.cs
- StackSpiller.Temps.cs
- SoapServerMethod.cs
- SystemWebSectionGroup.cs
- DocumentXPathNavigator.cs
- SqlDataSourceStatusEventArgs.cs
- NumberSubstitution.cs
- _NetRes.cs
- Part.cs
- SqlFlattener.cs
- UpnEndpointIdentity.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- Int16Storage.cs
- CodeGenerationManager.cs
- HttpListener.cs
- GridViewHeaderRowPresenter.cs
- UnsafePeerToPeerMethods.cs
- ViewManager.cs
- WindowsEditBoxRange.cs
- HtmlEncodedRawTextWriter.cs
- WasHttpHandlersInstallComponent.cs
- UriTemplateLiteralPathSegment.cs
- Roles.cs
- ResourceManager.cs
- IpcServerChannel.cs
- LinqDataSourceSelectEventArgs.cs
- CharUnicodeInfo.cs
- RootProjectionNode.cs
- StreamWithDictionary.cs
- CompiledIdentityConstraint.cs
- DoWorkEventArgs.cs
- LocatorBase.cs
- ExceptionTrace.cs
- ButtonPopupAdapter.cs
- OperandQuery.cs
- ValidatedControlConverter.cs
- ActiveXHost.cs
- JoinGraph.cs