Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / TextEffect.cs / 1305600 / TextEffect.cs
//------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation, 2001 // // File: TextEffect.cs // // Contents: TextEffect class // // Created: 3/23/2004 garyyang // //----------------------------------------------------------------------- using System; using System.Diagnostics; using System.Runtime.InteropServices; using System.Windows; using System.Collections; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Markup; using System.ComponentModel; using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; namespace System.Windows.Media { ////// The class definition for TextEffect /// [Localizability(LocalizationCategory.None, Readability=Readability.Unreadable)] public partial class TextEffect : Animatable { //---------------------------------------- // constructor //---------------------------------------- ////// Constructor to TextEffect /// /// transform of the text effect /// foreground of the text effect /// clip of the text effect /// starting character index of the text effect /// number of code points public TextEffect( Transform transform, Brush foreground, Geometry clip, int positionStart, int positionCount ) { if (positionCount < 0) { throw new ArgumentOutOfRangeException("positionCount", SR.Get(SRID.ParameterCannotBeNegative)); } Transform = transform; Foreground = foreground; Clip = clip; PositionStart = positionStart; PositionCount = positionCount; } ////// constructor /// public TextEffect() { } //------------------------------- // Private method //------------------------------- private static bool OnPositionStartChanging(int value) { return (value >= 0); } private static bool OnPositionCountChanging(int value) { return (value >= 0); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation, 2001 // // File: TextEffect.cs // // Contents: TextEffect class // // Created: 3/23/2004 garyyang // //----------------------------------------------------------------------- using System; using System.Diagnostics; using System.Runtime.InteropServices; using System.Windows; using System.Collections; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Markup; using System.ComponentModel; using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; namespace System.Windows.Media { ////// The class definition for TextEffect /// [Localizability(LocalizationCategory.None, Readability=Readability.Unreadable)] public partial class TextEffect : Animatable { //---------------------------------------- // constructor //---------------------------------------- ////// Constructor to TextEffect /// /// transform of the text effect /// foreground of the text effect /// clip of the text effect /// starting character index of the text effect /// number of code points public TextEffect( Transform transform, Brush foreground, Geometry clip, int positionStart, int positionCount ) { if (positionCount < 0) { throw new ArgumentOutOfRangeException("positionCount", SR.Get(SRID.ParameterCannotBeNegative)); } Transform = transform; Foreground = foreground; Clip = clip; PositionStart = positionStart; PositionCount = positionCount; } ////// constructor /// public TextEffect() { } //------------------------------- // Private method //------------------------------- private static bool OnPositionStartChanging(int value) { return (value >= 0); } private static bool OnPositionCountChanging(int value) { return (value >= 0); } } } // 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
- webproxy.cs
- Model3D.cs
- ExpressionBuilderCollection.cs
- IgnorePropertiesAttribute.cs
- DocumentApplicationJournalEntry.cs
- MaskedTextProvider.cs
- Util.cs
- Codec.cs
- ApplicationHost.cs
- DBSqlParserTable.cs
- Base64Stream.cs
- WebBrowser.cs
- XmlSchemaCompilationSettings.cs
- XmlToDatasetMap.cs
- GregorianCalendar.cs
- Pool.cs
- SettingsPropertyNotFoundException.cs
- Triangle.cs
- CodeIdentifiers.cs
- InlineObject.cs
- HttpCacheVaryByContentEncodings.cs
- QilReplaceVisitor.cs
- ActivityDesignerAccessibleObject.cs
- WebZone.cs
- ColorTransformHelper.cs
- MonthCalendar.cs
- XsdDuration.cs
- LicenseManager.cs
- WebPartConnectionsDisconnectVerb.cs
- AuthenticationConfig.cs
- SoapExtension.cs
- WebBrowserPermission.cs
- DataGridViewTextBoxEditingControl.cs
- QilExpression.cs
- SplitterEvent.cs
- VScrollBar.cs
- XmlSequenceWriter.cs
- MouseActionValueSerializer.cs
- ipaddressinformationcollection.cs
- RuntimeHandles.cs
- ToolStripDropDownMenu.cs
- ISCIIEncoding.cs
- CredentialManagerDialog.cs
- DiscriminatorMap.cs
- HttpListenerRequest.cs
- CacheMemory.cs
- ExtractedStateEntry.cs
- ClientRoleProvider.cs
- ChannelServices.cs
- InputLanguageEventArgs.cs
- HMACMD5.cs
- ClassicBorderDecorator.cs
- ToolStripDropTargetManager.cs
- Vector3DCollection.cs
- SpeakProgressEventArgs.cs
- Point3DAnimationBase.cs
- DescendentsWalkerBase.cs
- ProtocolsConfigurationHandler.cs
- FormViewInsertEventArgs.cs
- IsolatedStorageFileStream.cs
- HebrewNumber.cs
- PriorityRange.cs
- InheritanceAttribute.cs
- SecurityUniqueId.cs
- DesignConnectionCollection.cs
- HttpStaticObjectsCollectionWrapper.cs
- XPathBinder.cs
- ZoneIdentityPermission.cs
- InitializerFacet.cs
- ApplicationManager.cs
- ScriptingScriptResourceHandlerSection.cs
- ElementFactory.cs
- PostBackTrigger.cs
- TextElementEnumerator.cs
- EmptyQuery.cs
- CompiledRegexRunner.cs
- ReferentialConstraint.cs
- ColorAnimationBase.cs
- sqlcontext.cs
- TextProperties.cs
- MsmqProcessProtocolHandler.cs
- ComboBox.cs
- XmlDeclaration.cs
- DrawingGroup.cs
- Monitor.cs
- ConditionCollection.cs
- GregorianCalendarHelper.cs
- xmlfixedPageInfo.cs
- XmlChoiceIdentifierAttribute.cs
- SqlDependencyListener.cs
- GridViewRowCollection.cs
- CollectionViewGroup.cs
- PathFigure.cs
- AttributeSetAction.cs
- TextEditorParagraphs.cs
- SectionInformation.cs
- SearchExpression.cs
- itemelement.cs
- RangeValueProviderWrapper.cs
- SimpleWorkerRequest.cs