Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Framework / System / Windows / Documents / FixedSOMTableRow.cs / 2 / 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 = System.Windows.Markup.TypeConverterHelper.EnglishUSCulture; 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 = System.Windows.Markup.TypeConverterHelper.EnglishUSCulture; 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
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EnvironmentPermission.cs
- DecoderReplacementFallback.cs
- X509UI.cs
- SatelliteContractVersionAttribute.cs
- SqlInternalConnectionTds.cs
- ServiceBuildProvider.cs
- HitTestWithGeometryDrawingContextWalker.cs
- HostingPreferredMapPath.cs
- SmiEventSink.cs
- MemoryMappedView.cs
- FontUnit.cs
- MarshalByValueComponent.cs
- PropertyToken.cs
- ObjectStateFormatter.cs
- SQLByteStorage.cs
- DescendantOverDescendantQuery.cs
- GenerateHelper.cs
- ValueTypeFieldReference.cs
- JsonWriterDelegator.cs
- DrawListViewColumnHeaderEventArgs.cs
- SelectionHighlightInfo.cs
- PageParser.cs
- ByeMessage11.cs
- DataListItem.cs
- SchemaManager.cs
- XNodeSchemaApplier.cs
- LinkLabelLinkClickedEvent.cs
- safelinkcollection.cs
- SocketStream.cs
- OverrideMode.cs
- GcSettings.cs
- SystemTcpStatistics.cs
- SchemaInfo.cs
- PrincipalPermission.cs
- ScalarRestriction.cs
- util.cs
- HttpCachePolicyElement.cs
- TransformerInfo.cs
- ItemsControl.cs
- ReadContentAsBinaryHelper.cs
- AddressAlreadyInUseException.cs
- NotSupportedException.cs
- SHA512.cs
- ErrorReporting.cs
- FlowLayoutPanel.cs
- Visual3DCollection.cs
- XPathChildIterator.cs
- DataGridViewIntLinkedList.cs
- ParserOptions.cs
- CursorConverter.cs
- XmlSchemaComplexType.cs
- ZipPackage.cs
- TypeConverterHelper.cs
- DefaultValueConverter.cs
- PagedDataSource.cs
- HttpConfigurationContext.cs
- ConnectionPointCookie.cs
- CommandLibraryHelper.cs
- DefaultHttpHandler.cs
- WriterOutput.cs
- DesignerVerbCollection.cs
- SecureConversationVersion.cs
- DetailsViewDeleteEventArgs.cs
- DataContractJsonSerializerOperationBehavior.cs
- UpdatePanelTriggerCollection.cs
- xamlnodes.cs
- ComplexBindingPropertiesAttribute.cs
- ReaderWriterLock.cs
- GradientBrush.cs
- CacheAxisQuery.cs
- X509CertificateValidator.cs
- CatalogPart.cs
- UpWmlMobileTextWriter.cs
- PinnedBufferMemoryStream.cs
- AdapterUtil.cs
- DbProviderFactory.cs
- DivideByZeroException.cs
- ValidatorCompatibilityHelper.cs
- DbTypeMap.cs
- OrthographicCamera.cs
- _RequestCacheProtocol.cs
- Font.cs
- ConnectionManagementSection.cs
- PropertyTab.cs
- TreeNodeCollection.cs
- ImageSource.cs
- EditingMode.cs
- InterleavedZipPartStream.cs
- PaperSize.cs
- PathSegmentCollection.cs
- ConfigPathUtility.cs
- Flowchart.cs
- ConnectionManagementElement.cs
- TableLayoutPanel.cs
- TextRangeEditLists.cs
- ElementAction.cs
- TextEditorSpelling.cs
- AsymmetricSignatureFormatter.cs
- ZipIORawDataFileBlock.cs
- CodeThrowExceptionStatement.cs