Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- CompilerInfo.cs
- TableItemStyle.cs
- CommentEmitter.cs
- RectAnimationUsingKeyFrames.cs
- BitStack.cs
- SecureUICommand.cs
- XmlAttributeOverrides.cs
- MapPathBasedVirtualPathProvider.cs
- SystemResourceKey.cs
- AmbientLight.cs
- MessageQueue.cs
- CodeCatchClauseCollection.cs
- Relationship.cs
- CodeDelegateCreateExpression.cs
- SelectionEditor.cs
- CodeEventReferenceExpression.cs
- DockingAttribute.cs
- SemanticResolver.cs
- UnsafeNativeMethodsCLR.cs
- RemoteWebConfigurationHostStream.cs
- HostedHttpTransportManager.cs
- HtmlLabelAdapter.cs
- ButtonFlatAdapter.cs
- OdbcUtils.cs
- IgnorePropertiesAttribute.cs
- ObjectTag.cs
- HtmlFormAdapter.cs
- MetadataSource.cs
- NavigationProperty.cs
- TagPrefixAttribute.cs
- ToolStripDropDownButton.cs
- IgnoreFileBuildProvider.cs
- KeyProperty.cs
- ContentPresenter.cs
- OdbcEnvironment.cs
- ReliableOutputSessionChannel.cs
- ServiceMoniker.cs
- DynamicILGenerator.cs
- SystemParameters.cs
- SmiConnection.cs
- ObjectDataProvider.cs
- ConnectionsZone.cs
- safex509handles.cs
- Context.cs
- OverrideMode.cs
- Rotation3DAnimation.cs
- FixedSOMFixedBlock.cs
- Permission.cs
- _NegoStream.cs
- ZipIOExtraField.cs
- HtmlEncodedRawTextWriter.cs
- MethodBuilderInstantiation.cs
- HexParser.cs
- ListSourceHelper.cs
- Ops.cs
- AxisAngleRotation3D.cs
- HtmlMeta.cs
- MessageEncodingBindingElementImporter.cs
- LocalServiceSecuritySettingsElement.cs
- OutputCacheSection.cs
- RequestStatusBarUpdateEventArgs.cs
- MSAAEventDispatcher.cs
- DocumentGrid.cs
- ExpressionBindings.cs
- FocusManager.cs
- XsdCachingReader.cs
- TextEditorSpelling.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- LineUtil.cs
- InputScopeConverter.cs
- ArrayList.cs
- SQLRoleProvider.cs
- DesignerVerbCollection.cs
- PathTooLongException.cs
- RedirectionProxy.cs
- ConfigurationManagerInternal.cs
- ValueProviderWrapper.cs
- HebrewCalendar.cs
- RotationValidation.cs
- Policy.cs
- KeyValueConfigurationCollection.cs
- LinearGradientBrush.cs
- _ListenerRequestStream.cs
- AttachmentCollection.cs
- StringOutput.cs
- AuthenticationSection.cs
- RtfToXamlLexer.cs
- XmlSchemaAttributeGroupRef.cs
- FrameworkContentElement.cs
- HtmlTableRow.cs
- ExecutionContext.cs
- SecurityKeyIdentifierClause.cs
- InkCanvasAutomationPeer.cs
- RSAOAEPKeyExchangeFormatter.cs
- BCryptHashAlgorithm.cs
- ControlPropertyNameConverter.cs
- RadioButtonBaseAdapter.cs
- XmlValidatingReaderImpl.cs
- Automation.cs
- StringFreezingAttribute.cs