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
- Convert.cs
- PropertyIDSet.cs
- BitFlagsGenerator.cs
- ContextMenuAutomationPeer.cs
- Light.cs
- UdpAnnouncementEndpoint.cs
- CheckableControlBaseAdapter.cs
- CodeTypeParameter.cs
- FrameworkTemplate.cs
- DbConnectionPoolOptions.cs
- StandardToolWindows.cs
- HMACSHA384.cs
- TimeSpanStorage.cs
- GeneralTransform3D.cs
- EncodingDataItem.cs
- ObservableCollection.cs
- IsolatedStorageFileStream.cs
- AppDomainAttributes.cs
- DataServiceRequest.cs
- ItemsControlAutomationPeer.cs
- SchemaNamespaceManager.cs
- HwndProxyElementProvider.cs
- ClientFormsIdentity.cs
- PointLight.cs
- DelegatingChannelListener.cs
- Deflater.cs
- ClassHandlersStore.cs
- RegexWorker.cs
- SessionSwitchEventArgs.cs
- AuthenticateEventArgs.cs
- FlowDocumentReaderAutomationPeer.cs
- cookiecontainer.cs
- NestedContainer.cs
- AxisAngleRotation3D.cs
- VisualStyleTypesAndProperties.cs
- ColorConvertedBitmap.cs
- tibetanshape.cs
- Evaluator.cs
- TrustLevel.cs
- XmlSchemaSimpleTypeList.cs
- HebrewCalendar.cs
- IdentityModelStringsVersion1.cs
- SoapClientMessage.cs
- ContentHostHelper.cs
- TitleStyle.cs
- SchemaType.cs
- PlanCompilerUtil.cs
- returneventsaver.cs
- DecoderExceptionFallback.cs
- SQLStringStorage.cs
- WpfWebRequestHelper.cs
- CornerRadiusConverter.cs
- ScrollItemPattern.cs
- Suspend.cs
- TriggerCollection.cs
- InfoCardService.cs
- TableColumn.cs
- EntityUtil.cs
- CombinedGeometry.cs
- BinaryFormatterWriter.cs
- ConditionalDesigner.cs
- FieldBuilder.cs
- Substitution.cs
- ReferentialConstraint.cs
- ToolStripManager.cs
- Vector3DCollection.cs
- ErrorWrapper.cs
- TemplateEditingFrame.cs
- ChangePassword.cs
- Scene3D.cs
- ToolstripProfessionalRenderer.cs
- HttpListener.cs
- CollectionDataContractAttribute.cs
- DataSetSchema.cs
- PageThemeBuildProvider.cs
- PrintController.cs
- ExchangeUtilities.cs
- PropertyConverter.cs
- NativeMethods.cs
- CalloutQueueItem.cs
- MatcherBuilder.cs
- DefaultBindingPropertyAttribute.cs
- XmlBufferReader.cs
- CharacterBuffer.cs
- SafeNativeMethods.cs
- FixedBufferAttribute.cs
- StyleReferenceConverter.cs
- latinshape.cs
- XamlWriter.cs
- DataGridTableCollection.cs
- IPHostEntry.cs
- ObjectCacheHost.cs
- DSASignatureFormatter.cs
- CodePrimitiveExpression.cs
- Group.cs
- AddInBase.cs
- SqlMethodAttribute.cs
- HttpListenerRequest.cs
- SQLDoubleStorage.cs
- TextDecorationLocationValidation.cs