Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- ProjectionPlanCompiler.cs
- PassportAuthentication.cs
- ProfilePropertySettings.cs
- WindowPatternIdentifiers.cs
- XmlElementList.cs
- RightsManagementEncryptedStream.cs
- DBCommand.cs
- ItemChangedEventArgs.cs
- Variant.cs
- BindableTemplateBuilder.cs
- FileUpload.cs
- QEncodedStream.cs
- BamlBinaryReader.cs
- DataBinding.cs
- KeyFrames.cs
- MimePart.cs
- BuildProviderCollection.cs
- WebHostScriptMappingsInstallComponent.cs
- SyntaxCheck.cs
- SafeCryptoHandles.cs
- SmtpReplyReaderFactory.cs
- DateTimeUtil.cs
- TableLayoutStyleCollection.cs
- SafeHandles.cs
- SerializationEventsCache.cs
- DataGridViewAutoSizeModeEventArgs.cs
- TransformGroup.cs
- ContainerUtilities.cs
- XAMLParseException.cs
- CodeParameterDeclarationExpressionCollection.cs
- Point4DValueSerializer.cs
- SymLanguageVendor.cs
- DataPagerCommandEventArgs.cs
- HttpListenerResponse.cs
- Binding.cs
- HostedTcpTransportManager.cs
- Visual3D.cs
- XmlReflectionImporter.cs
- AuditLog.cs
- FakeModelPropertyImpl.cs
- OleDbMetaDataFactory.cs
- IgnoreSectionHandler.cs
- EdmMember.cs
- BindingBase.cs
- MediaContext.cs
- StrokeFIndices.cs
- CardSpaceShim.cs
- PrinterUnitConvert.cs
- KeyboardEventArgs.cs
- PageBuildProvider.cs
- BinaryObjectWriter.cs
- ReceiveContextCollection.cs
- WpfWebRequestHelper.cs
- DateBoldEvent.cs
- CountdownEvent.cs
- IsolatedStoragePermission.cs
- ClipboardData.cs
- WhitespaceRuleLookup.cs
- ObjectListFieldCollection.cs
- SystemIPGlobalStatistics.cs
- BitmapImage.cs
- BooleanConverter.cs
- CheckBoxBaseAdapter.cs
- ParallelTimeline.cs
- UrlPropertyAttribute.cs
- NetMsmqSecurityMode.cs
- DataGridViewBand.cs
- SubclassTypeValidatorAttribute.cs
- InkSerializer.cs
- CompressStream.cs
- CounterSample.cs
- ComplexBindingPropertiesAttribute.cs
- SecurityTokenSpecification.cs
- TableCellAutomationPeer.cs
- XPathAncestorQuery.cs
- View.cs
- RightsManagementEncryptedStream.cs
- Ops.cs
- DrawingVisual.cs
- CompilerHelpers.cs
- BookmarkScopeManager.cs
- WmlLinkAdapter.cs
- AdPostCacheSubstitution.cs
- PermissionAttributes.cs
- TokenFactoryFactory.cs
- SelectionItemPattern.cs
- DynamicResourceExtensionConverter.cs
- CustomBindingElementCollection.cs
- IconBitmapDecoder.cs
- EncryptedHeader.cs
- NonBatchDirectoryCompiler.cs
- AutomationTextAttribute.cs
- MergeFilterQuery.cs
- SmiContextFactory.cs
- Registry.cs
- DropDownList.cs
- UnmanagedMemoryStream.cs
- DBPropSet.cs
- SafeEventHandle.cs
- ProjectionPruner.cs