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
- BufferedOutputStream.cs
- Guid.cs
- FastEncoderWindow.cs
- SurrogateDataContract.cs
- EmbeddedMailObjectsCollection.cs
- RawStylusInput.cs
- ListBoxChrome.cs
- SiteMapNodeCollection.cs
- CheckPair.cs
- CodeTypeParameter.cs
- NameValuePair.cs
- TdsParserSessionPool.cs
- WaveHeader.cs
- MenuRendererClassic.cs
- FrugalList.cs
- CompressEmulationStream.cs
- DataGridViewRowCancelEventArgs.cs
- SqlFlattener.cs
- FormatVersion.cs
- BigInt.cs
- EdmItemCollection.cs
- Highlights.cs
- DocumentReference.cs
- MyContact.cs
- References.cs
- IndicFontClient.cs
- UserPersonalizationStateInfo.cs
- TableRow.cs
- GroupBox.cs
- BitmapEffectInputConnector.cs
- StorageEntityTypeMapping.cs
- ExtensionDataReader.cs
- UriGenerator.cs
- _DisconnectOverlappedAsyncResult.cs
- CodeDelegateInvokeExpression.cs
- AppearanceEditorPart.cs
- EditingContext.cs
- WebPartActionVerb.cs
- TypeSource.cs
- DefaultBindingPropertyAttribute.cs
- MarkupCompiler.cs
- ClientFormsIdentity.cs
- MSAANativeProvider.cs
- VirtualizingStackPanel.cs
- PathTooLongException.cs
- ZipIOExtraFieldZip64Element.cs
- CompatibleComparer.cs
- XmlUrlEditor.cs
- ReachIDocumentPaginatorSerializerAsync.cs
- SynchronizingStream.cs
- DataObjectCopyingEventArgs.cs
- NativeMethods.cs
- glyphs.cs
- ConnectionStringsExpressionBuilder.cs
- UpdateTracker.cs
- BufferBuilder.cs
- UnsafeNativeMethodsPenimc.cs
- EntityDesignPluralizationHandler.cs
- ObjectDataSourceFilteringEventArgs.cs
- WebException.cs
- Point3DAnimationUsingKeyFrames.cs
- ClientConfigurationHost.cs
- Expression.cs
- SqlDataSource.cs
- CommandField.cs
- XmlSchemaParticle.cs
- NameValueCollection.cs
- MeasurementDCInfo.cs
- SizeKeyFrameCollection.cs
- WindowsListViewItem.cs
- DataGridViewAutoSizeModeEventArgs.cs
- InstanceKeyView.cs
- UnhandledExceptionEventArgs.cs
- DataGridViewCheckBoxCell.cs
- future.cs
- HtmlTitle.cs
- PanelDesigner.cs
- JavaScriptString.cs
- CustomAttribute.cs
- DetailsViewRowCollection.cs
- ActiveDocumentEvent.cs
- SectionInformation.cs
- VisualTreeHelper.cs
- MissingFieldException.cs
- GridViewCommandEventArgs.cs
- ProxyHwnd.cs
- CollectionViewSource.cs
- PowerModeChangedEventArgs.cs
- MetadataArtifactLoaderComposite.cs
- MatrixConverter.cs
- EffectiveValueEntry.cs
- NonSerializedAttribute.cs
- SafeRegistryHandle.cs
- Inflater.cs
- TagPrefixAttribute.cs
- SqlCrossApplyToCrossJoin.cs
- IUnknownConstantAttribute.cs
- HttpInputStream.cs
- DBNull.cs
- MessageSecurityException.cs