Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Media / textformatting / TextSimpleMarkerProperties.cs / 1 / TextSimpleMarkerProperties.cs
//------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation, 2004 // // File: TextSimpleMarkerProperties.cs // // Contents: Generic implementation of text marker properties // // Spec: [....]/sites/Avalon/Specs/Text%20Formatting%20API.doc // // Created: 1-2-2004 [....] ([....]) // //----------------------------------------------------------------------- using System; using System.Collections; using System.Windows; using MS.Internal.TextFormatting; using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; namespace System.Windows.Media.TextFormatting { ////// Generic implementation of text marker properties /// public class TextSimpleMarkerProperties : TextMarkerProperties { private double _offset; private TextSource _textSource; ////// Construct a text marker object /// /// marker style /// distance from line start to the end of the marker symbol /// autonumbering counter of counter-style marker /// text paragraph properties public TextSimpleMarkerProperties( TextMarkerStyle style, double offset, int autoNumberingIndex, TextParagraphProperties textParagraphProperties ) { _offset = offset; if (style != TextMarkerStyle.None) { if (TextMarkerSource.IsKnownSymbolMarkerStyle(style)) { // autoNumberingIndex is ignored } else if (TextMarkerSource.IsKnownIndexMarkerStyle(style)) { // validate autoNumberingIndex if (autoNumberingIndex < 1) { throw new ArgumentOutOfRangeException("autoNumberingIndex", SR.Get(SRID.ParameterCannotBeLessThan, 1)); } } else { // invalid style throw new ArgumentException(SR.Get(SRID.Enum_Invalid, typeof(TextMarkerStyle)), "style"); } _textSource = new TextMarkerSource( textParagraphProperties, style, autoNumberingIndex ); } } ////// Distance from line start to the end of the marker symbol /// public sealed override double Offset { get { return _offset; } } ////// Source of text runs used for text marker /// public sealed override TextSource TextSource { get { return _textSource; } } } } // 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
- GroupBoxRenderer.cs
- DataServices.cs
- ConfigurationLockCollection.cs
- httpapplicationstate.cs
- MatrixValueSerializer.cs
- JapaneseLunisolarCalendar.cs
- IDQuery.cs
- View.cs
- XmlChoiceIdentifierAttribute.cs
- PropertyKey.cs
- XamlVector3DCollectionSerializer.cs
- PerformanceCounterPermissionEntryCollection.cs
- CqlLexer.cs
- CodeComment.cs
- XmlSchemaSet.cs
- ZeroOpNode.cs
- Collection.cs
- AcceptorSessionSymmetricMessageSecurityProtocol.cs
- OperationFormatter.cs
- XmlDataDocument.cs
- UTF7Encoding.cs
- StrokeNodeData.cs
- DataPagerFieldCommandEventArgs.cs
- SignedInfo.cs
- KeyEvent.cs
- HttpCachePolicy.cs
- MailWebEventProvider.cs
- ZipIOLocalFileBlock.cs
- MergeLocalizationDirectives.cs
- UnsafeNativeMethods.cs
- ElementInit.cs
- SerialPort.cs
- NativeMethods.cs
- XmlCodeExporter.cs
- ScaleTransform.cs
- SqlDataSource.cs
- HtmlInputHidden.cs
- WindowsClientElement.cs
- SelectionProcessor.cs
- CompiledAction.cs
- CodeDOMUtility.cs
- ObjectManager.cs
- XmlSerializerSection.cs
- DefinitionProperties.cs
- RuntimeVariableList.cs
- Renderer.cs
- XmlNotation.cs
- Scene3D.cs
- HwndProxyElementProvider.cs
- SchemaNamespaceManager.cs
- storepermissionattribute.cs
- FilterableAttribute.cs
- CodeAttributeDeclaration.cs
- SmiMetaData.cs
- ToolboxItemAttribute.cs
- TdsParserSafeHandles.cs
- XPathItem.cs
- IndentedWriter.cs
- BinaryObjectInfo.cs
- PolyQuadraticBezierSegment.cs
- PointLight.cs
- TemplateParser.cs
- TypeSystem.cs
- AuthenticateEventArgs.cs
- WindowsListView.cs
- XpsTokenContext.cs
- HMACSHA256.cs
- Expander.cs
- DoubleKeyFrameCollection.cs
- WizardPanel.cs
- _SslSessionsCache.cs
- MarkedHighlightComponent.cs
- Vector3DValueSerializer.cs
- DataSetViewSchema.cs
- OleDbPropertySetGuid.cs
- WebBrowserHelper.cs
- ProbeMatches11.cs
- MapPathBasedVirtualPathProvider.cs
- UIElementPropertyUndoUnit.cs
- ListBoxDesigner.cs
- ScriptReferenceEventArgs.cs
- ApplicationFileCodeDomTreeGenerator.cs
- ActivityExecutorSurrogate.cs
- DummyDataSource.cs
- SafeNativeMethodsOther.cs
- DbProviderManifest.cs
- CachedBitmap.cs
- Page.cs
- Annotation.cs
- PeerNearMe.cs
- MessageDescriptionCollection.cs
- NumericExpr.cs
- DecimalAnimationUsingKeyFrames.cs
- MethodBuilder.cs
- codemethodreferenceexpression.cs
- UIEndRequest.cs
- ResponseStream.cs
- XmlSchemaInfo.cs
- UriSection.cs
- SmiRecordBuffer.cs