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
- FrameDimension.cs
- SqlCacheDependencyDatabase.cs
- RenderDataDrawingContext.cs
- TransferRequestHandler.cs
- HashCodeCombiner.cs
- ClientConfigurationSystem.cs
- EffectiveValueEntry.cs
- NativeMethodsOther.cs
- HandleValueEditor.cs
- NonParentingControl.cs
- XmlDataLoader.cs
- SimpleTypeResolver.cs
- RowTypePropertyElement.cs
- ChineseLunisolarCalendar.cs
- Point3D.cs
- Debug.cs
- ReferentialConstraint.cs
- VariableDesigner.xaml.cs
- StorageTypeMapping.cs
- CopyOfAction.cs
- ContentPropertyAttribute.cs
- IndicCharClassifier.cs
- ChtmlImageAdapter.cs
- HScrollBar.cs
- SqlParameterCollection.cs
- HierarchicalDataSourceControl.cs
- Policy.cs
- LogSwitch.cs
- SQLConvert.cs
- ReadOnlyDictionary.cs
- BitmapMetadata.cs
- SecurityBindingElementImporter.cs
- ResourceAssociationType.cs
- TypeProvider.cs
- DesignerWithHeader.cs
- ResourceManagerWrapper.cs
- KoreanLunisolarCalendar.cs
- EventSetter.cs
- DataGridPageChangedEventArgs.cs
- VerificationAttribute.cs
- WebPartMinimizeVerb.cs
- StructuredTypeEmitter.cs
- WebPageTraceListener.cs
- HashSetDebugView.cs
- ChildDocumentBlock.cs
- ConditionalDesigner.cs
- MetadataItem.cs
- TraceContextRecord.cs
- AdjustableArrowCap.cs
- PathFigure.cs
- MissingSatelliteAssemblyException.cs
- Blend.cs
- UpdateException.cs
- ViewValidator.cs
- StylusButtonCollection.cs
- ParentUndoUnit.cs
- ServiceBusyException.cs
- ToolStripDropDownItem.cs
- ExceptionRoutedEventArgs.cs
- NameSpaceExtractor.cs
- WorkflowInstanceQuery.cs
- ClientConfigurationSystem.cs
- QueuePathEditor.cs
- UriScheme.cs
- HorizontalAlignConverter.cs
- SoapConverter.cs
- QueryResult.cs
- DataMemberAttribute.cs
- XmlSchemaException.cs
- AttributeData.cs
- WSDualHttpSecurityElement.cs
- LinkUtilities.cs
- SqlUserDefinedAggregateAttribute.cs
- RenderDataDrawingContext.cs
- PreProcessor.cs
- RangeValuePattern.cs
- EmbeddedObject.cs
- EncryptedHeader.cs
- HighlightVisual.cs
- SpellerInterop.cs
- AlternateViewCollection.cs
- FileFormatException.cs
- ScopelessEnumAttribute.cs
- GeometryCollection.cs
- RSAPKCS1KeyExchangeFormatter.cs
- Repeater.cs
- Pts.cs
- CalendarDayButton.cs
- basemetadatamappingvisitor.cs
- XamlWriter.cs
- _LocalDataStoreMgr.cs
- SizeChangedEventArgs.cs
- NavigationHelper.cs
- ContextProperty.cs
- SqlClientPermission.cs
- BoundingRectTracker.cs
- AdjustableArrowCap.cs
- PermissionRequestEvidence.cs
- SessionState.cs
- InputProcessorProfilesLoader.cs