Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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: [....] - 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
- DataGridPageChangedEventArgs.cs
- FlowLayoutSettings.cs
- ImageFormat.cs
- Pkcs7Signer.cs
- XamlParser.cs
- SqlRowUpdatingEvent.cs
- ChildTable.cs
- RSAOAEPKeyExchangeFormatter.cs
- ProfilePropertyMetadata.cs
- CustomGrammar.cs
- DataSetSchema.cs
- QuaternionConverter.cs
- Selector.cs
- ValidationHelpers.cs
- FormCollection.cs
- MostlySingletonList.cs
- ContainerParagraph.cs
- ListViewCancelEventArgs.cs
- SafeBitVector32.cs
- RequiredAttributeAttribute.cs
- SizeF.cs
- BooleanFunctions.cs
- Roles.cs
- ItemsControlAutomationPeer.cs
- LinqDataSourceHelper.cs
- SelectedCellsChangedEventArgs.cs
- ReflectionUtil.cs
- XsdValidatingReader.cs
- WSMessageEncoding.cs
- DSASignatureFormatter.cs
- WorkerRequest.cs
- XmlNavigatorFilter.cs
- HatchBrush.cs
- XhtmlCssHandler.cs
- DirectoryInfo.cs
- DataGridViewRowCollection.cs
- IgnoreSectionHandler.cs
- SingleSelectRootGridEntry.cs
- MissingMethodException.cs
- EdmPropertyAttribute.cs
- SecurityToken.cs
- BoundField.cs
- CachedPathData.cs
- HostingEnvironmentSection.cs
- MouseEventArgs.cs
- ObsoleteAttribute.cs
- BatchWriter.cs
- WeakReferenceList.cs
- SingleAnimationBase.cs
- Guid.cs
- ValidationHelpers.cs
- TreeNodeBindingCollection.cs
- Compiler.cs
- DragDrop.cs
- OdbcConnectionPoolProviderInfo.cs
- PeerToPeerException.cs
- ResourceType.cs
- UnionCqlBlock.cs
- XmlTextEncoder.cs
- WebPartEditorApplyVerb.cs
- ToolstripProfessionalRenderer.cs
- Error.cs
- ToolConsole.cs
- SemanticValue.cs
- ExceptionHelpers.cs
- PropertyTab.cs
- ProcessThreadCollection.cs
- RawStylusInputCustomData.cs
- XmlChoiceIdentifierAttribute.cs
- FtpWebResponse.cs
- DelegatingTypeDescriptionProvider.cs
- ProcessHostFactoryHelper.cs
- PersistChildrenAttribute.cs
- ValueQuery.cs
- isolationinterop.cs
- DataGridViewColumnConverter.cs
- WebPartHelpVerb.cs
- CardSpaceSelector.cs
- WsrmMessageInfo.cs
- MapPathBasedVirtualPathProvider.cs
- SqlDataAdapter.cs
- XmlFileEditor.cs
- Base64Encoder.cs
- ToolStripControlHost.cs
- SqlFunctionAttribute.cs
- XamlInterfaces.cs
- TextTrailingCharacterEllipsis.cs
- PropVariant.cs
- SiteMapNode.cs
- CultureInfoConverter.cs
- CommonDialog.cs
- SecurityDescriptor.cs
- InitializationEventAttribute.cs
- IntranetCredentialPolicy.cs
- InputBuffer.cs
- ProfileSection.cs
- DesignerUtils.cs
- SimpleExpression.cs
- ControlIdConverter.cs
- DtdParser.cs