Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TextDecorationCollection.cs
- TemplateInstanceAttribute.cs
- ExceptionValidationRule.cs
- XmlDesignerDataSourceView.cs
- OleDbCommandBuilder.cs
- TextPenaltyModule.cs
- XamlToRtfWriter.cs
- ObjectIDGenerator.cs
- AccessorTable.cs
- DecimalAnimationUsingKeyFrames.cs
- XsltException.cs
- CodeArrayIndexerExpression.cs
- StandardCommands.cs
- elementinformation.cs
- SystemException.cs
- ListViewSortEventArgs.cs
- PersonalizationStateInfo.cs
- DbConnectionInternal.cs
- AccessViolationException.cs
- AssemblyBuilder.cs
- RelationshipNavigation.cs
- OpenFileDialog.cs
- ConnectionPoint.cs
- TextElementEnumerator.cs
- EventLogInternal.cs
- CommandCollectionEditor.cs
- Soap12FormatExtensions.cs
- ClientSettings.cs
- OpacityConverter.cs
- WaitHandleCannotBeOpenedException.cs
- SoapCodeExporter.cs
- MouseEvent.cs
- CompoundFileStreamReference.cs
- ReliabilityContractAttribute.cs
- TwoPhaseCommitProxy.cs
- DataGridAddNewRow.cs
- SubclassTypeValidator.cs
- BaseParagraph.cs
- OleDbPropertySetGuid.cs
- TextSearch.cs
- OptimisticConcurrencyException.cs
- FlowchartDesigner.Helpers.cs
- HorizontalAlignConverter.cs
- ReadOnlyKeyedCollection.cs
- LinkConverter.cs
- WebServiceMethodData.cs
- MimeMultiPart.cs
- SpeechDetectedEventArgs.cs
- XPSSignatureDefinition.cs
- HttpModuleCollection.cs
- ScriptServiceAttribute.cs
- ProjectionRewriter.cs
- ProjectionAnalyzer.cs
- TemplateKeyConverter.cs
- LoginView.cs
- TagPrefixInfo.cs
- UrlAuthFailedErrorFormatter.cs
- HMACSHA1.cs
- SemaphoreSecurity.cs
- XmlSchemaObjectTable.cs
- InputEventArgs.cs
- FileNotFoundException.cs
- ScriptingProfileServiceSection.cs
- WebPermission.cs
- CommandHelpers.cs
- ContainsRowNumberChecker.cs
- ListDictionaryInternal.cs
- MemoryMappedViewStream.cs
- AccessText.cs
- DataColumnCollection.cs
- Error.cs
- SelectionRange.cs
- ElementNotAvailableException.cs
- HostingEnvironment.cs
- MetadataItem.cs
- EdmSchemaAttribute.cs
- ProfileGroupSettings.cs
- WebServiceAttribute.cs
- DataGridrowEditEndingEventArgs.cs
- ToolStripItemTextRenderEventArgs.cs
- TimeStampChecker.cs
- LocatorBase.cs
- FormatterServices.cs
- TimerElapsedEvenArgs.cs
- TextTreeRootTextBlock.cs
- CultureInfoConverter.cs
- ActiveDocumentEvent.cs
- TypeLoadException.cs
- ImageButton.cs
- Code.cs
- VariableAction.cs
- PrePrepareMethodAttribute.cs
- Encoding.cs
- SoapSchemaExporter.cs
- HelpOperationInvoker.cs
- CodePrimitiveExpression.cs
- LinearGradientBrush.cs
- DrawingAttributesDefaultValueFactory.cs
- XmlCodeExporter.cs
- MimePart.cs