Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / MS / Internal / PtsHost / LineBreakRecord.cs / 1305600 / 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
- HandoffBehavior.cs
- MetaDataInfo.cs
- RangeValuePatternIdentifiers.cs
- WebPartChrome.cs
- IDispatchConstantAttribute.cs
- Decorator.cs
- CookielessData.cs
- ErrorWrapper.cs
- Odbc32.cs
- CommandBinding.cs
- TableLayoutCellPaintEventArgs.cs
- FileSystemWatcher.cs
- ZeroOpNode.cs
- SchemaComplexType.cs
- EventLogPermissionEntry.cs
- TypeConverterAttribute.cs
- sqlcontext.cs
- SlipBehavior.cs
- Executor.cs
- HotSpotCollectionEditor.cs
- DeploymentExceptionMapper.cs
- LabelLiteral.cs
- BinaryMessageFormatter.cs
- ProfessionalColorTable.cs
- ReadOnlyPropertyMetadata.cs
- ItemMap.cs
- StyleXamlTreeBuilder.cs
- CaseInsensitiveComparer.cs
- LinkLabel.cs
- Accessors.cs
- MailBnfHelper.cs
- AsyncCompletedEventArgs.cs
- ReflectEventDescriptor.cs
- ScrollBarRenderer.cs
- ReflectionUtil.cs
- FlagsAttribute.cs
- Binding.cs
- DateTimeParse.cs
- RuntimeConfigurationRecord.cs
- sqlstateclientmanager.cs
- ResponseBodyWriter.cs
- OuterGlowBitmapEffect.cs
- ConnectionConsumerAttribute.cs
- ChildTable.cs
- ApplicationInfo.cs
- BCryptHashAlgorithm.cs
- MobileControlsSection.cs
- CodeDirectiveCollection.cs
- EncoderReplacementFallback.cs
- PrimitiveXmlSerializers.cs
- RawStylusInputReport.cs
- SignatureConfirmationElement.cs
- XMLDiffLoader.cs
- SystemThemeKey.cs
- SmiConnection.cs
- NativeMethods.cs
- ReliableDuplexSessionChannel.cs
- SimpleType.cs
- FloatMinMaxAggregationOperator.cs
- FixedSOMContainer.cs
- URL.cs
- HttpCapabilitiesEvaluator.cs
- ItemType.cs
- CommonDialog.cs
- FontInfo.cs
- OdbcConnectionOpen.cs
- CardSpaceSelector.cs
- QEncodedStream.cs
- WebConfigurationHost.cs
- DetailsViewRowCollection.cs
- ZoneIdentityPermission.cs
- _Win32.cs
- NumericPagerField.cs
- PointHitTestResult.cs
- XmlSchemaInferenceException.cs
- RectConverter.cs
- ProviderConnectionPointCollection.cs
- ProxyElement.cs
- SmtpSection.cs
- StorageModelBuildProvider.cs
- EntitySqlQueryCacheEntry.cs
- _PooledStream.cs
- WebConfigurationManager.cs
- HttpClientProtocol.cs
- CodeThrowExceptionStatement.cs
- ApplicationDirectoryMembershipCondition.cs
- CacheEntry.cs
- ACL.cs
- OdbcPermission.cs
- OptimizedTemplateContent.cs
- SqlProfileProvider.cs
- TypeUtil.cs
- _ListenerResponseStream.cs
- RemotingServices.cs
- StylusEventArgs.cs
- DoubleCollectionValueSerializer.cs
- IssuedSecurityTokenParameters.cs
- IsolatedStorageFilePermission.cs
- NamedPipeHostedTransportConfiguration.cs
- FamilyTypeface.cs