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
- SqlFacetAttribute.cs
- ThicknessAnimationBase.cs
- OleDbReferenceCollection.cs
- BuildProviderCollection.cs
- ToolStripDropDownClosingEventArgs.cs
- CodeComment.cs
- ADMembershipProvider.cs
- ProfilePropertyNameValidator.cs
- Floater.cs
- SamlAuthenticationClaimResource.cs
- AnimatedTypeHelpers.cs
- DataGridViewButtonColumn.cs
- AutoCompleteStringCollection.cs
- ListGeneralPage.cs
- InteropExecutor.cs
- KeyGestureConverter.cs
- SafeFindHandle.cs
- AdCreatedEventArgs.cs
- SizeFConverter.cs
- GPPOINTF.cs
- PrefixQName.cs
- HttpSessionStateBase.cs
- ApplicationDirectory.cs
- ScopedMessagePartSpecification.cs
- WinCategoryAttribute.cs
- DataBinding.cs
- DockPatternIdentifiers.cs
- ScriptManagerProxy.cs
- KeyedCollection.cs
- BuildProviderAppliesToAttribute.cs
- ArrayList.cs
- SecurityState.cs
- RelatedPropertyManager.cs
- MailHeaderInfo.cs
- ListView.cs
- Tablet.cs
- ConfigurationPermission.cs
- Margins.cs
- MembershipAdapter.cs
- EdmMember.cs
- CustomLineCap.cs
- SafeFileMappingHandle.cs
- CodeConstructor.cs
- SamlEvidence.cs
- ContractAdapter.cs
- __FastResourceComparer.cs
- Stackframe.cs
- WebServiceReceive.cs
- Frame.cs
- NativeMethods.cs
- BufferBuilder.cs
- querybuilder.cs
- PrintPreviewControl.cs
- DecoderExceptionFallback.cs
- FormViewModeEventArgs.cs
- HashAlgorithm.cs
- JsonWriter.cs
- EventListener.cs
- FacetChecker.cs
- XmlDownloadManager.cs
- Misc.cs
- XmlChoiceIdentifierAttribute.cs
- CmsInterop.cs
- BinaryObjectReader.cs
- FontStyles.cs
- BridgeDataRecord.cs
- PasswordRecovery.cs
- SafeRegistryHandle.cs
- Int32Animation.cs
- MembershipAdapter.cs
- CaseStatementProjectedSlot.cs
- HttpRuntimeSection.cs
- SspiSafeHandles.cs
- SchemaImporterExtension.cs
- TemplateControlParser.cs
- SchemaCollectionPreprocessor.cs
- RootDesignerSerializerAttribute.cs
- GcSettings.cs
- SqlReferenceCollection.cs
- UnsafeNativeMethods.cs
- ProcessModelSection.cs
- sortedlist.cs
- ClassData.cs
- TemplateKeyConverter.cs
- AccessDataSource.cs
- PermissionListSet.cs
- ActivityPreviewDesigner.cs
- RunWorkerCompletedEventArgs.cs
- OdbcConnectionOpen.cs
- TemplateControlParser.cs
- OrderedDictionaryStateHelper.cs
- CodeEventReferenceExpression.cs
- FieldTemplateUserControl.cs
- MimeWriter.cs
- DocumentXmlWriter.cs
- XmlQualifiedName.cs
- ToolStripSeparator.cs
- XmlCDATASection.cs
- DataControlCommands.cs
- ClientTargetCollection.cs