Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Framework / MS / Internal / PtsHost / LineBreakRecord.cs / 1 / LineBreakRecord.cs
//---------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // // File: LineBreakRecord // // Description: LineBreakRecord is unmanaged resouce handle to TextLineBreak // // History: // 06/07/2005 : ghermann - created // //--------------------------------------------------------------------------- using System; using System.Windows; using System.Windows.Documents; using MS.Internal.Text; using System.Windows.Media.TextFormatting; namespace MS.Internal.PtsHost { // --------------------------------------------------------------------- // Break record for line - holds decoration information // --------------------------------------------------------------------- internal sealed class LineBreakRecord : UnmanagedHandle { // ------------------------------------------------------------------ // Constructor. // // PtsContext - Context // TextLineBreak - Contained line break // ----------------------------------------------------------------- internal LineBreakRecord(PtsContext ptsContext, TextLineBreak textLineBreak) : base(ptsContext) { _textLineBreak = textLineBreak; } ////// Dispose the line break /// public override void Dispose() { if(_textLineBreak != null) { _textLineBreak.Dispose(); } base.Dispose(); } #region Internal Methods ////// Clones the underlying TextLineBreak /// internal LineBreakRecord Clone() { return new LineBreakRecord(PtsContext, _textLineBreak.Clone()); } internal TextLineBreak TextLineBreak { get { return _textLineBreak; } } #endregion Internal Methods #region Private Fields private TextLineBreak _textLineBreak; #endregion Private Fields } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // // File: LineBreakRecord // // Description: LineBreakRecord is unmanaged resouce handle to TextLineBreak // // History: // 06/07/2005 : ghermann - created // //--------------------------------------------------------------------------- using System; using System.Windows; using System.Windows.Documents; using MS.Internal.Text; using System.Windows.Media.TextFormatting; namespace MS.Internal.PtsHost { // --------------------------------------------------------------------- // Break record for line - holds decoration information // --------------------------------------------------------------------- internal sealed class LineBreakRecord : UnmanagedHandle { // ------------------------------------------------------------------ // Constructor. // // PtsContext - Context // TextLineBreak - Contained line break // ----------------------------------------------------------------- internal LineBreakRecord(PtsContext ptsContext, TextLineBreak textLineBreak) : base(ptsContext) { _textLineBreak = textLineBreak; } ////// Dispose the line break /// public override void Dispose() { if(_textLineBreak != null) { _textLineBreak.Dispose(); } base.Dispose(); } #region Internal Methods ////// Clones the underlying TextLineBreak /// internal LineBreakRecord Clone() { return new LineBreakRecord(PtsContext, _textLineBreak.Clone()); } internal TextLineBreak TextLineBreak { get { return _textLineBreak; } } #endregion Internal Methods #region Private Fields private TextLineBreak _textLineBreak; #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
- ProxySimple.cs
- BaseValidator.cs
- RuntimeResourceSet.cs
- CodeConditionStatement.cs
- LogConverter.cs
- TableLayoutPanelCodeDomSerializer.cs
- ToolTip.cs
- DefaultTextStoreTextComposition.cs
- HwndHostAutomationPeer.cs
- LicenseContext.cs
- _BufferOffsetSize.cs
- GestureRecognitionResult.cs
- filewebresponse.cs
- AuthStoreRoleProvider.cs
- LinqExpressionNormalizer.cs
- ExpandedWrapper.cs
- ResourceIDHelper.cs
- SHA256Managed.cs
- securitycriticaldata.cs
- SequenceDesigner.cs
- ResourceAssociationSet.cs
- FileLogRecord.cs
- XPathParser.cs
- HttpFileCollection.cs
- DecimalAnimation.cs
- StoryFragments.cs
- CompatibleComparer.cs
- TextServicesCompartmentContext.cs
- ExpressionParser.cs
- SqlRecordBuffer.cs
- CommandLibraryHelper.cs
- WindowHideOrCloseTracker.cs
- WebConfigurationHost.cs
- OleStrCAMarshaler.cs
- StorageRoot.cs
- Assembly.cs
- BooleanFacetDescriptionElement.cs
- PropertyState.cs
- ArrayTypeMismatchException.cs
- ApplyTemplatesAction.cs
- FieldCollectionEditor.cs
- ShortcutKeysEditor.cs
- ItemsChangedEventArgs.cs
- CurrencyManager.cs
- ProfileModule.cs
- NameValueConfigurationElement.cs
- ScrollEvent.cs
- DataRelationPropertyDescriptor.cs
- TextMetrics.cs
- CodeCompiler.cs
- NamedPipeProcessProtocolHandler.cs
- ToolStripPanelRenderEventArgs.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- RedirectionProxy.cs
- GPPOINT.cs
- WsdlInspector.cs
- RichTextBoxConstants.cs
- NamespaceExpr.cs
- Command.cs
- ImageListUtils.cs
- Compiler.cs
- OleDbEnumerator.cs
- ToolboxItemCollection.cs
- SamlAction.cs
- CalendarTable.cs
- PeerToPeerException.cs
- CatalogPartChrome.cs
- ColorInterpolationModeValidation.cs
- EntityType.cs
- SettingsPropertyCollection.cs
- ProtocolsConfigurationHandler.cs
- TaskHelper.cs
- BrowserCapabilitiesFactory.cs
- FrameSecurityDescriptor.cs
- ISO2022Encoding.cs
- SchemaEntity.cs
- DecoderExceptionFallback.cs
- ItemAutomationPeer.cs
- CopyCodeAction.cs
- IntegerFacetDescriptionElement.cs
- ToggleButton.cs
- Dump.cs
- XPathCompileException.cs
- Emitter.cs
- CodeGeneratorAttribute.cs
- AutomationFocusChangedEventArgs.cs
- OutputChannel.cs
- NamedPermissionSet.cs
- Visual3D.cs
- StreamWriter.cs
- Model3DGroup.cs
- ReaderWriterLock.cs
- ChameleonKey.cs
- TrustManager.cs
- XmlJsonWriter.cs
- CodeAssignStatement.cs
- ServiceThrottlingBehavior.cs
- ColorDialog.cs
- RuleProcessor.cs
- SoapAttributeOverrides.cs