Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / System / Windows / Media / TextEffect.cs / 1 / 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
- DeferredTextReference.cs
- DocumentNUp.cs
- SystemSounds.cs
- SafeHandles.cs
- panel.cs
- DefaultMemberAttribute.cs
- BitmapEncoder.cs
- SchemaConstraints.cs
- LabelEditEvent.cs
- BlurEffect.cs
- NullRuntimeConfig.cs
- PointIndependentAnimationStorage.cs
- FixedSOMFixedBlock.cs
- CacheChildrenQuery.cs
- DynamicUpdateCommand.cs
- PixelFormats.cs
- UserPrincipalNameElement.cs
- ContractsBCL.cs
- NavigationExpr.cs
- ThousandthOfEmRealDoubles.cs
- DataKeyArray.cs
- TextSelectionProcessor.cs
- CodeDirectionExpression.cs
- ComponentEditorForm.cs
- SuppressIldasmAttribute.cs
- MultiView.cs
- MarkupCompilePass1.cs
- MultidimensionalArrayItemReference.cs
- WebServiceData.cs
- AmbientLight.cs
- Debug.cs
- TypedDatasetGenerator.cs
- DesignerWithHeader.cs
- ArrayElementGridEntry.cs
- DataObjectMethodAttribute.cs
- AddInBase.cs
- FontFamilyValueSerializer.cs
- BinaryObjectWriter.cs
- CodeChecksumPragma.cs
- ScaleTransform.cs
- MessagingActivityHelper.cs
- X509RawDataKeyIdentifierClause.cs
- MultiAsyncResult.cs
- BulletedList.cs
- TextBoxBase.cs
- BasicHttpSecurity.cs
- DictionaryContent.cs
- OdbcCommandBuilder.cs
- GroupItem.cs
- EntityContainerEmitter.cs
- TextElementEnumerator.cs
- ScrollPatternIdentifiers.cs
- XmlSchemaAll.cs
- WarningException.cs
- DataServiceProcessingPipelineEventArgs.cs
- BindingGroup.cs
- GenericPrincipal.cs
- DataGridViewCellStyleChangedEventArgs.cs
- GenericAuthenticationEventArgs.cs
- TreeNodeSelectionProcessor.cs
- KeyFrames.cs
- ChtmlTextWriter.cs
- RegexWriter.cs
- AuthenticationException.cs
- ErrorFormatter.cs
- EditingCoordinator.cs
- XPathNavigator.cs
- EmptyEnumerator.cs
- ServiceDurableInstanceContextProvider.cs
- MethodBuilderInstantiation.cs
- XamlInt32CollectionSerializer.cs
- SqlStatistics.cs
- ItemCollectionEditor.cs
- RadioButtonBaseAdapter.cs
- TaiwanLunisolarCalendar.cs
- WindowsAuthenticationModule.cs
- DataGridColumnFloatingHeader.cs
- ScriptingProfileServiceSection.cs
- StyleCollection.cs
- securitycriticaldataClass.cs
- MulticastNotSupportedException.cs
- ELinqQueryState.cs
- ClientSettingsStore.cs
- ModelPerspective.cs
- CalendarDay.cs
- SafeArrayRankMismatchException.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- ExtentJoinTreeNode.cs
- IndexerHelper.cs
- transactioncontext.cs
- TableCell.cs
- WorkflowMarkupElementEventArgs.cs
- CodeGotoStatement.cs
- FilterQueryOptionExpression.cs
- ToolStripItemEventArgs.cs
- BinaryObjectWriter.cs
- ClientRoleProvider.cs
- OneOf.cs
- XamlFxTrace.cs
- CommentAction.cs