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
- WindowsHyperlink.cs
- MarkupCompilePass1.cs
- COM2IPerPropertyBrowsingHandler.cs
- Thickness.cs
- TreeNodeEventArgs.cs
- FrameworkElementAutomationPeer.cs
- SharedPerformanceCounter.cs
- DelegatingTypeDescriptionProvider.cs
- ElementNotEnabledException.cs
- WebZone.cs
- ListViewAutomationPeer.cs
- PeerResolverSettings.cs
- FigureHelper.cs
- AddInIpcChannel.cs
- ProtocolsSection.cs
- EDesignUtil.cs
- DirectoryNotFoundException.cs
- MenuItemBindingCollection.cs
- ErrorStyle.cs
- MobileRedirect.cs
- StringComparer.cs
- TreeView.cs
- StylusPlugInCollection.cs
- DataSysAttribute.cs
- RankException.cs
- RoleService.cs
- ControlIdConverter.cs
- ReflectPropertyDescriptor.cs
- XmlSchemaComplexContentRestriction.cs
- PageEventArgs.cs
- DecoderFallbackWithFailureFlag.cs
- SourceLocationProvider.cs
- RangeContentEnumerator.cs
- SponsorHelper.cs
- Attributes.cs
- SmiEventStream.cs
- EmissiveMaterial.cs
- EditorPartChrome.cs
- SoundPlayer.cs
- ExpressionBindings.cs
- DeviceContext2.cs
- InteropBitmapSource.cs
- Timer.cs
- AutoGeneratedFieldProperties.cs
- DataComponentMethodGenerator.cs
- StackBuilderSink.cs
- DbProviderSpecificTypePropertyAttribute.cs
- PropertyEmitter.cs
- StronglyTypedResourceBuilder.cs
- securitycriticaldata.cs
- DeobfuscatingStream.cs
- X509Utils.cs
- FutureFactory.cs
- QilSortKey.cs
- RelatedImageListAttribute.cs
- SuppressIldasmAttribute.cs
- CacheAxisQuery.cs
- RefreshPropertiesAttribute.cs
- UnsafeNativeMethods.cs
- QilStrConcat.cs
- QueryOperationResponseOfT.cs
- AdapterUtil.cs
- EdmFunction.cs
- QuotedPrintableStream.cs
- TextServicesDisplayAttributePropertyRanges.cs
- GridProviderWrapper.cs
- DataSourceView.cs
- EntityDataSourceColumn.cs
- SystemIPv4InterfaceProperties.cs
- StringFreezingAttribute.cs
- InternalTypeHelper.cs
- Trace.cs
- PartManifestEntry.cs
- PrintEvent.cs
- SessionSwitchEventArgs.cs
- TextRangeEditTables.cs
- ResumeStoryboard.cs
- DataGridSortCommandEventArgs.cs
- ValidatingReaderNodeData.cs
- AssemblyNameProxy.cs
- ButtonBaseAutomationPeer.cs
- IPGlobalProperties.cs
- RectangleHotSpot.cs
- HttpWebRequestElement.cs
- DataControlLinkButton.cs
- WindowsScrollBarBits.cs
- ProfileService.cs
- LongPath.cs
- ValueType.cs
- PackageRelationship.cs
- VerticalAlignConverter.cs
- DataControlPagerLinkButton.cs
- ChildChangedEventArgs.cs
- Rijndael.cs
- DbDataAdapter.cs
- OperatorExpressions.cs
- ScrollPattern.cs
- GridViewCommandEventArgs.cs
- EventMappingSettingsCollection.cs
- CodeNamespaceImport.cs