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
- GridViewCancelEditEventArgs.cs
- ScriptDescriptor.cs
- SQLSingleStorage.cs
- WindowsFormsHostPropertyMap.cs
- UiaCoreApi.cs
- RotationValidation.cs
- ExecutorLocksHeldException.cs
- AttributeSetAction.cs
- DataFormat.cs
- ApplicationDirectoryMembershipCondition.cs
- UpDownEvent.cs
- ASCIIEncoding.cs
- Int32CAMarshaler.cs
- FullTextState.cs
- MarkupWriter.cs
- ActivityCodeDomSerializationManager.cs
- WebDisplayNameAttribute.cs
- WebPartEditorApplyVerb.cs
- cryptoapiTransform.cs
- QuaternionConverter.cs
- DelegatingMessage.cs
- CompositionAdorner.cs
- AlphabetConverter.cs
- ExecutorLocksHeldException.cs
- MenuItemAutomationPeer.cs
- StandardMenuStripVerb.cs
- WebPartAddingEventArgs.cs
- RoleServiceManager.cs
- PointLightBase.cs
- PasswordRecovery.cs
- ListManagerBindingsCollection.cs
- BufferModesCollection.cs
- XmlSchemaGroup.cs
- AvTraceDetails.cs
- ParallelForEach.cs
- MappingItemCollection.cs
- SizeChangedInfo.cs
- InvalidOperationException.cs
- RelatedView.cs
- ObjectSerializerFactory.cs
- xsdvalidator.cs
- XPathNodePointer.cs
- AttachInfo.cs
- IDataContractSurrogate.cs
- DragEventArgs.cs
- Visitors.cs
- DispatchChannelSink.cs
- WindowsListViewSubItem.cs
- IntSecurity.cs
- AttributeCollection.cs
- MenuItemStyle.cs
- SafeThreadHandle.cs
- PrimitiveXmlSerializers.cs
- ITreeGenerator.cs
- ZoomingMessageFilter.cs
- FormatConvertedBitmap.cs
- DBProviderConfigurationHandler.cs
- DataGridViewRowsRemovedEventArgs.cs
- PeerTransportBindingElement.cs
- EdmPropertyAttribute.cs
- Console.cs
- OdbcException.cs
- CodeFieldReferenceExpression.cs
- DispatcherExceptionEventArgs.cs
- ErrorActivity.cs
- QilNode.cs
- PropertyInfoSet.cs
- PageParser.cs
- BrowserCapabilitiesFactory.cs
- WsatAdminException.cs
- LinkButton.cs
- SspiNegotiationTokenProvider.cs
- Native.cs
- BamlTreeMap.cs
- InvokeProviderWrapper.cs
- SoapHeaderAttribute.cs
- MdbDataFileEditor.cs
- OrderedDictionary.cs
- HTMLTextWriter.cs
- OdbcConnectionPoolProviderInfo.cs
- BindingExpressionUncommonField.cs
- ChannelServices.cs
- Icon.cs
- SyndicationSerializer.cs
- UIElementParaClient.cs
- CssClassPropertyAttribute.cs
- LessThanOrEqual.cs
- MatrixUtil.cs
- ControlEvent.cs
- ScrollEventArgs.cs
- HyperlinkAutomationPeer.cs
- MenuTracker.cs
- ApplicationHost.cs
- controlskin.cs
- TableStyle.cs
- Int32Collection.cs
- CloudCollection.cs
- ItemsPresenter.cs
- StoreConnection.cs
- SqlXmlStorage.cs