Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HwndSubclass.cs
- HierarchicalDataBoundControlAdapter.cs
- XmlSchemaSimpleContent.cs
- DbParameterCollectionHelper.cs
- ZipIOModeEnforcingStream.cs
- QueryInterceptorAttribute.cs
- WindowsSolidBrush.cs
- SQLSingle.cs
- x509utils.cs
- IfElseDesigner.xaml.cs
- AttachedAnnotationChangedEventArgs.cs
- BufferedGraphicsManager.cs
- CanExecuteRoutedEventArgs.cs
- KeyedQueue.cs
- DictionarySurrogate.cs
- ThousandthOfEmRealDoubles.cs
- ListDictionary.cs
- MethodCallExpression.cs
- SqlUdtInfo.cs
- MultiViewDesigner.cs
- LongValidatorAttribute.cs
- TextFormatterImp.cs
- XmlSchemaComplexContentExtension.cs
- EventTrigger.cs
- Point4D.cs
- WebMessageFormatHelper.cs
- ActivityDesigner.cs
- DataBoundLiteralControl.cs
- DynamicActionMessageFilter.cs
- SqlExpressionNullability.cs
- InternalRelationshipCollection.cs
- SystemInfo.cs
- StartUpEventArgs.cs
- DemultiplexingClientMessageFormatter.cs
- ParameterCollection.cs
- UnionCodeGroup.cs
- XPathBuilder.cs
- ColorAnimationUsingKeyFrames.cs
- AssemblyCache.cs
- Int16Converter.cs
- TransactionTraceIdentifier.cs
- WorkflowMarkupSerializationManager.cs
- FixedSOMElement.cs
- FormViewInsertEventArgs.cs
- BindingsSection.cs
- XmlMemberMapping.cs
- VerificationException.cs
- Paragraph.cs
- DataTableClearEvent.cs
- PathFigure.cs
- MobileRedirect.cs
- XmlLangPropertyAttribute.cs
- FreezableCollection.cs
- BmpBitmapDecoder.cs
- HandleRef.cs
- ListenerServiceInstallComponent.cs
- TaiwanCalendar.cs
- DeflateInput.cs
- RichTextBoxDesigner.cs
- Permission.cs
- SystemTcpConnection.cs
- SafeWaitHandle.cs
- ColorContextHelper.cs
- RequestResponse.cs
- IEnumerable.cs
- IconHelper.cs
- Int64Animation.cs
- FontFamily.cs
- MergeLocalizationDirectives.cs
- Typeface.cs
- TcpClientCredentialType.cs
- TableCell.cs
- ImpersonationContext.cs
- ObjectIDGenerator.cs
- _Semaphore.cs
- GlobalizationAssembly.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- HiddenFieldPageStatePersister.cs
- PolyBezierSegment.cs
- FixedPageAutomationPeer.cs
- FormatException.cs
- Message.cs
- Brushes.cs
- ConcurrentDictionary.cs
- BmpBitmapDecoder.cs
- SymmetricKeyWrap.cs
- FontCacheLogic.cs
- PeerResolverElement.cs
- BuildProviderAppliesToAttribute.cs
- ObjectResult.cs
- WinFormsComponentEditor.cs
- FilteredDataSetHelper.cs
- ProfileInfo.cs
- GifBitmapEncoder.cs
- SocketAddress.cs
- ScrollViewer.cs
- CellCreator.cs
- PathData.cs
- EDesignUtil.cs
- TiffBitmapEncoder.cs