Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Documents / FixedSOMTableRow.cs / 1305600 / 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); FormattedText ft = new FormattedText(String.Format("{0} columns", _semanticBoxes.Count), TypeConverterHelper.InvariantEnglishUS, 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); FormattedText ft = new FormattedText(String.Format("{0} columns", _semanticBoxes.Count), TypeConverterHelper.InvariantEnglishUS, 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
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- wpf-etw.cs
- VectorKeyFrameCollection.cs
- CodeCommentStatement.cs
- UnsafeNativeMethods.cs
- TableLayoutStyle.cs
- COSERVERINFO.cs
- AlphaSortedEnumConverter.cs
- UriSchemeKeyedCollection.cs
- GridView.cs
- RankException.cs
- Rectangle.cs
- ObfuscateAssemblyAttribute.cs
- XmlChildNodes.cs
- ToolboxItem.cs
- TypedTableBase.cs
- Closure.cs
- IsolatedStorageFileStream.cs
- KnowledgeBase.cs
- DataGridViewAccessibleObject.cs
- WindowClosedEventArgs.cs
- CommandPlan.cs
- DependentList.cs
- TypeName.cs
- DesignerAttribute.cs
- FlagsAttribute.cs
- WindowShowOrOpenTracker.cs
- EventsTab.cs
- CqlWriter.cs
- PerformanceCounterScope.cs
- TreeNodeClickEventArgs.cs
- ResourceDescriptionAttribute.cs
- WindowVisualStateTracker.cs
- EncodedStreamFactory.cs
- TextDecorationCollectionConverter.cs
- ComboBox.cs
- WmpBitmapEncoder.cs
- ActivityExecutorOperation.cs
- TokenBasedSetEnumerator.cs
- ConfigurationValue.cs
- NTAccount.cs
- HtmlInputSubmit.cs
- SharedPerformanceCounter.cs
- TreeView.cs
- GeneratedContractType.cs
- PackagePartCollection.cs
- GeneralTransformGroup.cs
- CqlLexer.cs
- ISAPIWorkerRequest.cs
- AppDomainManager.cs
- DataServices.cs
- followingquery.cs
- ProfileEventArgs.cs
- TreeViewAutomationPeer.cs
- XmlSchemaImporter.cs
- LogReserveAndAppendState.cs
- TextTreeUndoUnit.cs
- RegexMatch.cs
- StyleXamlTreeBuilder.cs
- RowParagraph.cs
- ModifierKeysValueSerializer.cs
- BoolExpressionVisitors.cs
- TransformProviderWrapper.cs
- X509LogoTypeExtension.cs
- PolyBezierSegment.cs
- AssemblySettingAttributes.cs
- DataGridViewCell.cs
- TopClause.cs
- OleDbCommandBuilder.cs
- DateTimeValueSerializer.cs
- BulletedList.cs
- InternalReceiveMessage.cs
- FtpWebRequest.cs
- NullableBoolConverter.cs
- ConfigurationLockCollection.cs
- MouseWheelEventArgs.cs
- TokenBasedSet.cs
- StrokeIntersection.cs
- RegexFCD.cs
- ClassicBorderDecorator.cs
- XmlReader.cs
- RedBlackList.cs
- TextEffect.cs
- TrackBarDesigner.cs
- BuildResultCache.cs
- FormViewUpdateEventArgs.cs
- Exception.cs
- HttpContextServiceHost.cs
- XmlNamedNodeMap.cs
- SizeAnimationUsingKeyFrames.cs
- HashCodeCombiner.cs
- BinaryObjectWriter.cs
- SystemColors.cs
- transactioncontext.cs
- XmlSchemaInfo.cs
- ModifierKeysValueSerializer.cs
- FontStyles.cs
- DesignerActionItemCollection.cs
- ListViewTableRow.cs
- CommandManager.cs
- ComponentSerializationService.cs