Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Framework / System / Windows / Documents / FixedPosition.cs / 1 / FixedPosition.cs
//---------------------------------------------------------------------------- //// Copyright (C) 2004 by Microsoft Corporation. All rights reserved. // // // Description: // FixedPosition represents a hit-testable position in a fixed document's tree. // // History: // 11/19/2004 - Zhenbin Xu (ZhenbinX) - Created. // //--------------------------------------------------------------------------- namespace System.Windows.Documents { using MS.Internal.Documents; using System; using System.Collections; using System.Diagnostics; using System.Globalization; //===================================================================== ////// FixedPosition represents a hit-testable position in a fixed document's tree. /// internal struct FixedPosition { //------------------------------------------------------------------- // // Connstructors // //---------------------------------------------------------------------- #region Constructors internal FixedPosition(FixedNode fixedNode, int offset) { _fixedNode = fixedNode; _offset = offset; } #endregion Constructors //------------------------------------------------------------------- // // Public Methods // //---------------------------------------------------------------------- #if DEBUG ////// Create a string representation of this object /// ///string - A string representation of this object public override string ToString() { return String.Format(CultureInfo.InvariantCulture, "FN[{0}]-Offset[{1}]", _fixedNode.ToString(), _offset); } #endif //-------------------------------------------------------------------- // // Public Properties // //--------------------------------------------------------------------- //-------------------------------------------------------------------- // // Public Events // //--------------------------------------------------------------------- //------------------------------------------------------------------- // // Internal Methods // //--------------------------------------------------------------------- //-------------------------------------------------------------------- // // Internal Properties // //--------------------------------------------------------------------- #region Internal Properties // internal int Page { get { return _fixedNode.Page; } } // internal FixedNode Node { get { return _fixedNode; } } internal int Offset { get { return _offset; } } #endregion Internal Properties //-------------------------------------------------------------------- // // Private Methods // //---------------------------------------------------------------------- #region Private Properties #endregion Private Properties //------------------------------------------------------------------- // // Private Fields // //---------------------------------------------------------------------- #region Private Fields private readonly FixedNode _fixedNode; private readonly int _offset; // offset into the fixed node #endregion Private Fields } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- //// Copyright (C) 2004 by Microsoft Corporation. All rights reserved. // // // Description: // FixedPosition represents a hit-testable position in a fixed document's tree. // // History: // 11/19/2004 - Zhenbin Xu (ZhenbinX) - Created. // //--------------------------------------------------------------------------- namespace System.Windows.Documents { using MS.Internal.Documents; using System; using System.Collections; using System.Diagnostics; using System.Globalization; //===================================================================== ////// FixedPosition represents a hit-testable position in a fixed document's tree. /// internal struct FixedPosition { //------------------------------------------------------------------- // // Connstructors // //---------------------------------------------------------------------- #region Constructors internal FixedPosition(FixedNode fixedNode, int offset) { _fixedNode = fixedNode; _offset = offset; } #endregion Constructors //------------------------------------------------------------------- // // Public Methods // //---------------------------------------------------------------------- #if DEBUG ////// Create a string representation of this object /// ///string - A string representation of this object public override string ToString() { return String.Format(CultureInfo.InvariantCulture, "FN[{0}]-Offset[{1}]", _fixedNode.ToString(), _offset); } #endif //-------------------------------------------------------------------- // // Public Properties // //--------------------------------------------------------------------- //-------------------------------------------------------------------- // // Public Events // //--------------------------------------------------------------------- //------------------------------------------------------------------- // // Internal Methods // //--------------------------------------------------------------------- //-------------------------------------------------------------------- // // Internal Properties // //--------------------------------------------------------------------- #region Internal Properties // internal int Page { get { return _fixedNode.Page; } } // internal FixedNode Node { get { return _fixedNode; } } internal int Offset { get { return _offset; } } #endregion Internal Properties //-------------------------------------------------------------------- // // Private Methods // //---------------------------------------------------------------------- #region Private Properties #endregion Private Properties //------------------------------------------------------------------- // // Private Fields // //---------------------------------------------------------------------- #region Private Fields private readonly FixedNode _fixedNode; private readonly int _offset; // offset into the fixed node #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
- CatalogZoneBase.cs
- BoundColumn.cs
- DbProviderFactories.cs
- XPathNavigator.cs
- WebPartCatalogAddVerb.cs
- SignatureHelper.cs
- SchemaCollectionCompiler.cs
- MimeTypeMapper.cs
- XmlSignificantWhitespace.cs
- ManipulationCompletedEventArgs.cs
- DocumentPageViewAutomationPeer.cs
- NotImplementedException.cs
- PrimitiveXmlSerializers.cs
- ConfigXmlAttribute.cs
- EntityContainerAssociationSet.cs
- XPathNavigator.cs
- DataKeyArray.cs
- ObjectDataSourceSelectingEventArgs.cs
- PageAdapter.cs
- ApplyTemplatesAction.cs
- MimeParameter.cs
- AppDomainManager.cs
- AsmxEndpointPickerExtension.cs
- ApplicationContext.cs
- IndentTextWriter.cs
- CompilationLock.cs
- ScriptReference.cs
- _ProxyRegBlob.cs
- ChainOfResponsibility.cs
- SqlDependencyListener.cs
- CharUnicodeInfo.cs
- StateMachine.cs
- CheckBoxField.cs
- DelegatingHeader.cs
- WebPartEditorOkVerb.cs
- SmtpCommands.cs
- MD5.cs
- CultureInfoConverter.cs
- ToolStripContainerDesigner.cs
- X509LogoTypeExtension.cs
- FixedSOMSemanticBox.cs
- Transactions.cs
- RenderTargetBitmap.cs
- ObjectTag.cs
- BitmapEffectGroup.cs
- BindingCompleteEventArgs.cs
- FilteredXmlReader.cs
- SelectedDatesCollection.cs
- COM2PictureConverter.cs
- XmlException.cs
- GlyphRunDrawing.cs
- TextModifier.cs
- RuntimeConfigLKG.cs
- ResizeGrip.cs
- XamlSerializerUtil.cs
- Funcletizer.cs
- Serializer.cs
- WorkflowTraceTransfer.cs
- BookmarkOptionsHelper.cs
- HitTestParameters3D.cs
- FixedSOMSemanticBox.cs
- DataPagerFieldItem.cs
- ErrorLog.cs
- SineEase.cs
- Transform.cs
- FileLoadException.cs
- FormViewRow.cs
- ConnectivityStatus.cs
- XmlSchemaRedefine.cs
- VisemeEventArgs.cs
- BindingValueChangedEventArgs.cs
- List.cs
- CodeSnippetTypeMember.cs
- XPathExpr.cs
- EmbeddedObject.cs
- DeferredTextReference.cs
- TextReader.cs
- OleDbConnectionInternal.cs
- HttpException.cs
- NumericUpDown.cs
- ByteConverter.cs
- RuleConditionDialog.Designer.cs
- DocumentsTrace.cs
- CalendarButtonAutomationPeer.cs
- DictionaryMarkupSerializer.cs
- SqlFacetAttribute.cs
- ChangesetResponse.cs
- EntityDataReader.cs
- BitmapEncoder.cs
- Delegate.cs
- ToggleButtonAutomationPeer.cs
- AutomationEvent.cs
- XamlVector3DCollectionSerializer.cs
- SiteIdentityPermission.cs
- MetadataArtifactLoaderComposite.cs
- SelectionChangedEventArgs.cs
- Debug.cs
- COM2IPerPropertyBrowsingHandler.cs
- WebScriptMetadataFormatter.cs
- DefaultHttpHandler.cs